diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2005-07-19 18:16:33 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2005-07-19 18:16:33 (GMT) |
commit | bd92e1e2a0ad218875243ef6a8476b8f9b81bd0c (patch) | |
tree | 214e99d2206352b5b4a219e15ccff3002c6879ca /src/H5config.h.in | |
parent | f700613f562d26417d36686eefdb11e2c9ab72ab (diff) | |
download | hdf5-bd92e1e2a0ad218875243ef6a8476b8f9b81bd0c.zip hdf5-bd92e1e2a0ad218875243ef6a8476b8f9b81bd0c.tar.gz hdf5-bd92e1e2a0ad218875243ef6a8476b8f9b81bd0c.tar.bz2 |
[svn-r11087] Purpose: Bug fix.
Description: When converting floating-point numbers to integers and the values of
floating-point number are greater than the maximal value of integer, Cray X1 generates
floating exception.
Solution: Added a test in configure to detect Cray X1's exception. Set a flag to
indicate the machine that can handle overflow converting all floating-point to all
integer types. This flag should be set for all machines, except for Cray X1 where
floating exception is generated when the floating-point value is greater than the
maximal integer value.
Platforms tested: Cray X1 and h5committest.
Diffstat (limited to 'src/H5config.h.in')
-rw-r--r-- | src/H5config.h.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5config.h.in b/src/H5config.h.in index 82eef9f..5a9a79e 100644 --- a/src/H5config.h.in +++ b/src/H5config.h.in @@ -25,6 +25,10 @@ /* As FC_FUNC, but for C identifiers containing underscores. */ #undef FC_FUNC_ +/* Define if your system can handle overflow converting floating-point to + integer values. */ +#undef FP_TO_INTEGER_OVERFLOW_WORKS + /* Define if your system roundup accurately convert floating-point to unsigned long long values. */ #undef FP_TO_ULLONG_BOTTOM_BIT_WORKS |