fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libm / common / sf_nan.c
blob831f3f79fcc9f8524f49bf1a24d896910ba1ddea
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 SET_FLOAT_WORD(x,0x7fc00000);
13 return x;
16 #ifdef _DOUBLE_IS_32BITS
18 double nan(const char *arg)
20 return (double) nanf(arg);
23 #endif /* defined(_DOUBLE_IS_32BITS) */