Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / common / sf_isinff.c
blobcd7b2cfd3f9c5ad860e8102636bad9c652cfe631
1 /*
2 * __isinff(x) returns 1 if x is +-infinity, else 0;
3 * Added by Cygnus Support.
4 */
6 #include "fdlibm.h"
8 int
9 __isinff (float x)
11 __int32_t ix;
12 GET_FLOAT_WORD(ix,x);
13 ix &= 0x7fffffff;
14 return FLT_UWORD_IS_INFINITE(ix);
17 #ifdef _DOUBLE_IS_32BITS
19 int
20 __isinfd (double x)
22 return __isinff((float) x);
25 #endif /* defined(_DOUBLE_IS_32BITS) */