mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 11:00:04 +08:00
03d65dd99b
* libm/common/s_nan.c (nan): Likewise. * libm/common/s_nanf.c (nanf, nan): Likewise. * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
25 lines
302 B
C
25 lines
302 B
C
/*
|
|
* nanf () returns a nan.
|
|
* Added by Cygnus Support.
|
|
*/
|
|
|
|
#include "fdlibm.h"
|
|
|
|
float nanf(const char *unused)
|
|
{
|
|
float x;
|
|
|
|
SET_FLOAT_WORD(x,0x7fc00000);
|
|
return x;
|
|
}
|
|
|
|
#ifdef _DOUBLE_IS_32BITS
|
|
|
|
double nan(const char *arg)
|
|
{
|
|
return (double) nanf(arg);
|
|
}
|
|
|
|
#endif /* defined(_DOUBLE_IS_32BITS) */
|
|
|