4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 11:00:04 +08:00

25 lines
302 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(const char *unused)
2000-02-17 19:39:52 +00:00
{
float x;
SET_FLOAT_WORD(x,0x7fc00000);
return x;
}
#ifdef _DOUBLE_IS_32BITS
double nan(const char *arg)
2000-02-17 19:39:52 +00:00
{
return (double) nanf(arg);
2000-02-17 19:39:52 +00:00
}
#endif /* defined(_DOUBLE_IS_32BITS) */