mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
[svn-r176] added ABS macro
This commit is contained in:
parent
e1b3f3e3b3
commit
bae13084f0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user