Mercurial > hg > minc-tools
changeset 767:cf58ba62cbbf
*** empty log message ***
author | david <david> |
---|---|
date | Tue, 21 Feb 1995 08:31:43 +0000 |
parents | f06d03e1b18b |
children | 775ad72771e6 |
files | volume_io/Include/volume_io/basic.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/volume_io/Include/volume_io/basic.h +++ b/volume_io/Include/volume_io/basic.h @@ -3,7 +3,7 @@ #define DEF_BASIC #ifndef lint -static char basic_rcsid[] = "$Header: /private-cvsroot/minc/volume_io/Include/volume_io/basic.h,v 1.17 1994-12-08 08:49:53 david Exp $"; +static char basic_rcsid[] = "$Header: /private-cvsroot/minc/volume_io/Include/volume_io/basic.h,v 1.18 1995-02-21 08:31:43 david Exp $"; #endif /* ----------------------------- MNI Header ----------------------------------- @@ -59,7 +59,8 @@ and therefore may be inefficient, or incorrect, i.e, ABS( ++x ); ------------------ */ -#define ABS( x ) ( ((x) > (0)) ? (x) : (-(x)) ) +#define ABS( x ) ( ((x) > 0) ? (x) : (-(x)) ) +#define SIGN( x ) ( ((x) > 0) ? 1 : (((x) < 0) ? -1 : 0) ) #undef MAX #define MAX( x, y ) ( ((x) >= (y)) ? (x) : (y) )