summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2013-03-21 18:21:19 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2013-03-21 18:21:19 (GMT)
commit1218a113701470c98ce9cae8c953b8aa87d42a51 (patch)
tree3872f24a88a46ac834ff291e7357271e0cf3b42f /tools/lib
parentfa964fa01978c4e53878b4b4c95536848a5c2cf9 (diff)
downloadhdf5-1218a113701470c98ce9cae8c953b8aa87d42a51.zip
hdf5-1218a113701470c98ce9cae8c953b8aa87d42a51.tar.gz
hdf5-1218a113701470c98ce9cae8c953b8aa87d42a51.tar.bz2
[svn-r23416] Description:
Bring r23415 from trunk to 1.8 branch: Avoid using fpclassify() for detecting zero/non-zero values. Tested on: Mac OSX/64 10.8.3 (amazon) w/debug
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5diff_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c
index e5b8f79..77e5cf6 100644
--- a/tools/lib/h5diff_array.c
+++ b/tools/lib/h5diff_array.c
@@ -106,9 +106,9 @@ static hbool_t not_comparable;
per = -1; \
not_comparable = FALSE; \
both_zero = FALSE; \
- if(FP_ZERO == fpclassify(A) && FP_ZERO == fpclassify(B)) \
+ if(0 == (A) && 0 == (B)) \
both_zero = TRUE; \
- if(FP_ZERO != fpclassify(A)) \
+ if(0 != (A)) \
per = (double)ABS((double)(B - A) / (double)A); \
else \
not_comparable = TRUE; \