mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r179] Added SIGN macro
This commit is contained in:
parent
7aa4f57811
commit
67bfd03657
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user