diff options
Diffstat (limited to 'math/math.h')
-rw-r--r-- | math/math.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/math/math.h b/math/math.h index 2f25c237d4..e3adf096ad 100644 --- a/math/math.h +++ b/math/math.h @@ -282,6 +282,20 @@ enum #endif /* Use ISO C99. */ +#ifdef __USE_GNU +/* Return nonzero value if X is a signaling NaN. */ +# ifdef __NO_LONG_DOUBLE_MATH +# define issignaling(x) \ + (sizeof (x) == sizeof (float) ? __issignalingf (x) : __issignaling (x)) +# else +# define issignaling(x) \ + (sizeof (x) == sizeof (float) \ + ? __issignalingf (x) \ + : sizeof (x) == sizeof (double) \ + ? __issignaling (x) : __issignalingl (x)) +# endif +#endif /* Use GNU. */ + #ifdef __USE_MISC /* Support for various different standard error handling behaviors. */ typedef enum |