summaryrefslogtreecommitdiffstats
path: root/src/H5Tpublic.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-03-26 16:16:27 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-03-26 16:16:27 (GMT)
commit2e52c2f4f26f9eab6f51eb4b12a781f383467dd4 (patch)
tree23651caa44a18205cf95d0529160853a82fbd818 /src/H5Tpublic.h
parentc2c35afa8eafbcc05cb1622a0327130f02851885 (diff)
downloadhdf5-2e52c2f4f26f9eab6f51eb4b12a781f383467dd4.zip
hdf5-2e52c2f4f26f9eab6f51eb4b12a781f383467dd4.tar.gz
hdf5-2e52c2f4f26f9eab6f51eb4b12a781f383467dd4.tar.bz2
[svn-r10456] Purpose: New way to do conversion test from floating-points to integers.
Description: The 6th step of changing conversion test. This checkin is only for conversion of special values from floating-points to integers. Solution: This test is seperated from regular value conversion. It reuses the same function test_conv_int_float() in test/dtypes.c. The source buffer of floating-point type is filled up with 8 special values, +/-0, +/-infinity, +/-QNaN, +/-SNaN. Also added 3 new conversion exception values H5T_CONV_EXCEPT_PINF, H5T_CONV_EXCEPT_NINF, H5T_CONV_EXCEPT_NAN, for floating-point special values positive infinity, negative infinity, and NaN. These values are for conversion exception callback function defined through H5Pset_type_conv_cb(). (Remember to update the document!) Platforms tested: h5committest
Diffstat (limited to 'src/H5Tpublic.h')
-rw-r--r--src/H5Tpublic.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Tpublic.h b/src/H5Tpublic.h
index ddec8bb..98e92d3 100644
--- a/src/H5Tpublic.h
+++ b/src/H5Tpublic.h
@@ -172,7 +172,10 @@ typedef enum H5T_conv_except_t {
H5T_CONV_EXCEPT_RANGE_HI = 0, /*source value is greater than destination's range */
H5T_CONV_EXCEPT_RANGE_LOW = 1, /*source value is less than destination's range */
H5T_CONV_EXCEPT_PRECISION = 2, /*source value loses precision in destination */
- H5T_CONV_EXCEPT_TRUNCATE = 3 /*source value is truncated in destination */
+ H5T_CONV_EXCEPT_TRUNCATE = 3, /*source value is truncated in destination */
+ H5T_CONV_EXCEPT_PINF = 4, /*source value is positive infinity(floating number) */
+ H5T_CONV_EXCEPT_NINF = 5, /*source value is negative infinity(floating number) */
+ H5T_CONV_EXCEPT_NAN = 6 /*source value is NaN(floating number) */
} H5T_conv_except_t;
/* The return value from conversion callback function H5T_conv_except_func_t */