summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-01-28 00:20:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-01-28 00:20:01 (GMT)
commitbae13084f03f72cb315ec022d7913359010f3ea4 (patch)
tree803b5f752dfd45d2628458a2d7423b99daaf7f77
parente1b3f3e3b3ba8567aca081d7516a5a18caf3187b (diff)
downloadhdf5-bae13084f03f72cb315ec022d7913359010f3ea4.zip
hdf5-bae13084f03f72cb315ec022d7913359010f3ea4.tar.gz
hdf5-bae13084f03f72cb315ec022d7913359010f3ea4.tar.bz2
[svn-r176] added ABS macro
-rw-r--r--src/H5private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 831af24..107ce82 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -80,6 +80,11 @@
# define MAX(a,b) (((a)>(b)) ? (a) : (b))
#endif
+/* absolute value */
+#ifndef ABS
+# define ABS(a) (((a)>=0) ? (a) : -(a))
+#endif
+
/* maximum of three values */
#ifndef MAX3
# define MAX3(a,b,c) MAX(MAX(a,b),c)