From 572676160d5639edc0ecb663147bd291841458d1 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 2 Apr 2013 13:51:02 +0200 Subject: New macro named issignaling to check for a signaling NaN (sNaN). It is based on draft TS 18661 and currently enabled as a GNU extension. --- math/bits/mathcalls.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'math/bits') diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h index e5af507..870c54c 100644 --- a/math/bits/mathcalls.h +++ b/math/bits/mathcalls.h @@ -360,6 +360,12 @@ __MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z)); __END_NAMESPACE_C99 #endif +#ifdef __USE_GNU +/* Test for signaling NaN. */ +__MATHDECL_1 (int, __issignaling,, (_Mdouble_ __value)) + __attribute__ ((__const__)); +#endif + #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED /* Return X times (2 to the Nth power). */ __MATHCALL (scalb,, (_Mdouble_ __x, _Mdouble_ __n)); -- cgit v1.1