From b59cab1e2e90ca4ffb19eaf073f03917dc8eb0e9 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 7 Feb 2005 21:04:22 +0000 Subject: 2005-02-07 Jeff Johnston * libc/include/math.h (isfinite, isnormal, isunordered): Change input variable names to avoid mixups with nesting macros. --- newlib/libc/include/math.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'newlib/libc/include/math.h') diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index dbbae0048..36766809e 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -88,12 +88,12 @@ extern int __signbitd (double x); (__extension__ ({__typeof__(x) __x = (x); \ (sizeof (__x) == sizeof (float)) ? __fpclassifyf(__x) : __fpclassifyd(__x);})) -#define isfinite(x) \ - (__extension__ ({__typeof__(x) __x = (x); \ - fpclassify(__x) != FP_INFINITE && fpclassify(__x) != FP_NAN;})) -#define isnormal(x) \ - (__extension__ ({__typeof__(x) __x = (x); \ - fpclassify(__x) == FP_NORMAL;})) +#define isfinite(y) \ + (__extension__ ({__typeof__(y) __y = (y); \ + fpclassify(__y) != FP_INFINITE && fpclassify(__y) != FP_NAN;})) +#define isnormal(z) \ + (__extension__ ({__typeof__(z) __z = (z); \ + fpclassify(__z) == FP_NORMAL;})) #define signbit(x) \ (__extension__ ({__typeof__(x) __x = (x); \ (sizeof(__x) == sizeof(float)) ? __signbitf(__x) : __signbitd(__x);})) @@ -114,9 +114,9 @@ extern int __signbitd (double x); (__extension__ ({__typeof__(x) __x = (x); __typeof__(y) __y = (y); \ !isunordered(__x,__y) && (__x < __y || __x > __y);})) -#define isunordered(x,y) \ - (__extension__ ({__typeof__(x) __x = (x); __typeof__(y) __y = (y); \ - fpclassify(__x) == FP_NAN || fpclassify(__y) == FP_NAN;})) +#define isunordered(a,b) \ + (__extension__ ({__typeof__(a) __a = (a); __typeof__(b) __b = (b); \ + fpclassify(__a) == FP_NAN || fpclassify(__b) == FP_NAN;})) /* Non ANSI double precision functions. */ -- cgit v1.2.3