diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 8 | ||||
-rw-r--r-- | newlib/libc/include/math.h | 5 |
2 files changed, 4 insertions, 9 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 diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index ca65a44b2..c1bc7b04a 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -195,7 +195,8 @@ extern int __signbitd (double x); * arguments. C99 specifies that these names are reserved for macros * supporting multiple floating point types. Thus, they are * now defined as macros. Implementations of the old functions - * taking double arguments still exist for compatibility purposes. */ + * taking double arguments still exist for compatibility purposes + * (prototypes for them are in <ieeefp.h>). */ #ifndef isinf #define isinf(y) (fpclassify(y) == FP_INFINITE) #endif @@ -329,8 +330,6 @@ extern float fmaf _PARAMS((float, float, float)); extern float infinityf _PARAMS((void)); extern float nanf _PARAMS((const char *)); -extern int isnanf _PARAMS((float)); -extern int isinff _PARAMS((float)); extern int finitef _PARAMS((float)); extern float copysignf _PARAMS((float, float)); extern int ilogbf _PARAMS((float)); |