summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-01-28 12:33:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-01-28 12:33:25 (GMT)
commit67bfd03657b6a8b08d7e898d4f3ae554cc2e8c5e (patch)
treed5ab552e2eee86ecd570191cfa413da89718766d /src
parent7aa4f5781198f5f93bc377e6fabe2b58b152ad14 (diff)
downloadhdf5-67bfd03657b6a8b08d7e898d4f3ae554cc2e8c5e.zip
hdf5-67bfd03657b6a8b08d7e898d4f3ae554cc2e8c5e.tar.gz
hdf5-67bfd03657b6a8b08d7e898d4f3ae554cc2e8c5e.tar.bz2
[svn-r179] Added SIGN macro
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 107ce82..8f0dba0 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -85,6 +85,11 @@
# define ABS(a) (((a)>=0) ? (a) : -(a))
#endif
+/* sign of argument */
+#ifndef SIGN
+# define SIGN(a) ((a)>0 ? 1 : (a)<0 ? -1 : 0)
+#endif
+
/* maximum of three values */
#ifndef MAX3
# define MAX3(a,b,c) MAX(MAX(a,b),c)