Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / common / sf_nan.c
blob8f0e1a8cffad25ca67a06320124ef7d74a6aa209
1 /*
2 * nanf () returns a nan.
3 * Added by Cygnus Support.
4 */
6 #include "fdlibm.h"
8 float nanf(const char *unused)
10 float x;
12 #if __GNUC_PREREQ (3, 3)
13 x = __builtin_nanf("");
14 #else
15 SET_FLOAT_WORD(x,0x7fc00000);
16 #endif
17 return x;
20 #ifdef _DOUBLE_IS_32BITS
22 double nan(const char *arg)
24 return (double) nanf(arg);
27 #endif /* defined(_DOUBLE_IS_32BITS) */