diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-01-28 12:33:25 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-01-28 12:33:25 (GMT) |
commit | 67bfd03657b6a8b08d7e898d4f3ae554cc2e8c5e (patch) | |
tree | d5ab552e2eee86ecd570191cfa413da89718766d /src/H5private.h | |
parent | 7aa4f5781198f5f93bc377e6fabe2b58b152ad14 (diff) | |
download | hdf5-67bfd03657b6a8b08d7e898d4f3ae554cc2e8c5e.zip hdf5-67bfd03657b6a8b08d7e898d4f3ae554cc2e8c5e.tar.gz hdf5-67bfd03657b6a8b08d7e898d4f3ae554cc2e8c5e.tar.bz2 |
[svn-r179] Added SIGN macro
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 5 |
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) |