summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)