fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libm / math / sf_isinf.c
blob43a8abdf2ba325c58c0f0e74deb945d6f897039e
1 /*
2 * isinff(x) returns 1 if x is +-infinity, else 0;
3 * Added by Cygnus Support.
4 */
6 #include "fdlibm.h"
8 #ifdef __STDC__
9 int isinff(float x)
10 #else
11 int isinff(x)
12 float x;
13 #endif
15 __int32_t ix;
16 GET_FLOAT_WORD(ix,x);
17 ix &= 0x7fffffff;
18 return FLT_UWORD_IS_INFINITE(ix);
21 #ifdef _DOUBLE_IS_32BITS
23 #ifdef __STDC__
24 int isinf(double x)
25 #else
26 int isinf(x)
27 double x;
28 #endif
30 return isinff((float) x);
33 #endif /* defined(_DOUBLE_IS_32BITS) */