summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-07-19 18:16:33 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-07-19 18:16:33 (GMT)
commitbd92e1e2a0ad218875243ef6a8476b8f9b81bd0c (patch)
tree214e99d2206352b5b4a219e15ccff3002c6879ca /src
parentf700613f562d26417d36686eefdb11e2c9ab72ab (diff)
downloadhdf5-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')
-rw-r--r--src/H5config.h.in4
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