Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / common / sf_isnanf.c
blob0831da66483ab075f18a5b511d23eb2b46f9a6dd
1 /*
2 * ====================================================
3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5 * Developed at SunPro, a Sun Microsystems, Inc. business.
6 * Permission to use, copy, modify, and distribute this
7 * software is freely granted, provided that this notice
8 * is preserved.
9 * ====================================================
13 * __isnanf(x) returns 1 is x is nan, else 0;
16 #include "fdlibm.h"
18 int
19 __isnanf (float x)
21 __int32_t ix;
22 GET_FLOAT_WORD(ix,x);
23 ix &= 0x7fffffff;
24 return FLT_UWORD_IS_NAN(ix);
27 #ifdef _DOUBLE_IS_32BITS
29 int
30 __isnand (double x)
32 return __isnanf((float) x);
35 #endif /* defined(_DOUBLE_IS_32BITS) */