Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/common/sf_nan.c')
-rw-r--r--newlib/libm/common/sf_nan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libm/common/sf_nan.c b/newlib/libm/common/sf_nan.c
index 831f3f79f..8f0e1a8cf 100644
--- a/newlib/libm/common/sf_nan.c
+++ b/newlib/libm/common/sf_nan.c
@@ -9,7 +9,11 @@
{
float x;
+#if __GNUC_PREREQ (3, 3)
+ x = __builtin_nanf("");
+#else
SET_FLOAT_WORD(x,0x7fc00000);
+#endif
return x;
}