[svn-r179] Added SIGN macro

This commit is contained in:
Quincey Koziol 1998-01-28 07:33:25 -05:00
parent 7aa4f57811
commit 67bfd03657

View File

@ -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)