fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libm / common / sf_infinity.c
blob8722596c9784fec06d4d29f03f3b824826bd132a
1 /*
2 * infinityf () returns the representation of infinity.
3 * Added by Cygnus Support.
4 */
6 #include "fdlibm.h"
8 float infinityf()
10 float x;
12 SET_FLOAT_WORD(x,0x7f800000);
13 return x;
16 #ifdef _DOUBLE_IS_32BITS
18 double infinity()
20 return (double) infinityf();
23 #endif /* defined(_DOUBLE_IS_32BITS) */