4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-23 23:47:22 +08:00

25 lines
266 B
C
Raw Normal View History

2000-02-17 19:39:52 +00:00
/*
* nanf () returns a nan.
* Added by Cygnus Support.
*/
#include "fdlibm.h"
float nanf()
{
float x;
SET_FLOAT_WORD(x,0x7fc00000);
return x;
}
#ifdef _DOUBLE_IS_32BITS
double nan()
{
return (double) nanf();
}
#endif /* defined(_DOUBLE_IS_32BITS) */