diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-01-28 00:20:01 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-01-28 00:20:01 (GMT) |
commit | bae13084f03f72cb315ec022d7913359010f3ea4 (patch) | |
tree | 803b5f752dfd45d2628458a2d7423b99daaf7f77 /src | |
parent | e1b3f3e3b3ba8567aca081d7516a5a18caf3187b (diff) | |
download | hdf5-bae13084f03f72cb315ec022d7913359010f3ea4.zip hdf5-bae13084f03f72cb315ec022d7913359010f3ea4.tar.gz hdf5-bae13084f03f72cb315ec022d7913359010f3ea4.tar.bz2 |
[svn-r176] added ABS macro
Diffstat (limited to 'src')
-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 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) |