diff options
Diffstat (limited to 'newlib/libc/include/machine/ieeefp.h')
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index 531a20cd5..7b6280fcd 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -80,12 +80,8 @@ (__extension__ ({__typeof__(y) __y = (y); \ (sizeof (__y) == sizeof (float)) ? (1) : \ fpclassify(__y) != FP_INFINITE && fpclassify(__y) != FP_NAN;})) -#define isinf(x) \ - (__extension__ ({__typeof__(x) __x = (x); \ - (sizeof (__x) == sizeof (float)) ? (0) : __isinfd(__x);})) -#define isnan(x) \ - (__extension__ ({__typeof__(x) __x = (x); \ - (sizeof (__x) == sizeof (float)) ? (0) : __isnand(__x);})) +#define isinf(__x) ((sizeof (__x) == sizeof (float)) ? (0) : __isinfd(__x)) +#define isnan(__x) ((sizeof (__x) == sizeof (float)) ? (0) : __isnand(__x)) /* * Macros for use in ieeefp.h. We can't just define the real ones here |