Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-02-08 00:04:22 +0300
committerJeff Johnston <jjohnstn@redhat.com>2005-02-08 00:04:22 +0300
commitb59cab1e2e90ca4ffb19eaf073f03917dc8eb0e9 (patch)
tree077ea1f9f8bb9eecd2b1ba2d227d02513a11dc0d /newlib/libc/include
parent681e60c31c1a3135ba8924095d45dbbf22a52784 (diff)
2005-02-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (isfinite, isnormal, isunordered): Change input variable names to avoid mixups with nesting macros.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/math.h18
1 files changed, 9 insertions, 9 deletions
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. */