about summary refs log tree commit diff
path: root/math/fenv.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/fenv.h')
-rw-r--r--math/fenv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/math/fenv.h b/math/fenv.h
index 9006aa2fff..f7834472d8 100644
--- a/math/fenv.h
+++ b/math/fenv.h
@@ -145,6 +145,14 @@ extern int fesetmode (const femode_t *__modep) __THROW;
 # include <bits/fenvinline.h>
 #endif
 
+/* NaN support.  */
+
+#if (__GLIBC_USE (IEC_60559_BFP_EXT)		\
+     && defined FE_INVALID			\
+     && defined __SUPPORT_SNAN__)
+# define FE_SNANS_ALWAYS_SIGNAL	1
+#endif
+
 #ifdef __USE_GNU
 
 /* Enable individual exceptions.  Will not enable more exceptions than