newlib-cygwin/newlib/libm/mathfp/s_infconst.c

16 lines
432 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
/* Infinity as a constant value. This is used for HUGE_VAL.
* Added by Cygnus Support.
*/
#include "fdlibm.h"
#ifndef _DOUBLE_IS_32BITS
#ifdef __IEEE_BIG_ENDIAN
const union __dmath __infinity[1] = {{ 0x7ff00000, 0 }};
2000-02-18 03:39:52 +08:00
#else
const union __dmath __infinity[1] = {{ 0, 0x7ff00000 }};
2000-02-18 03:39:52 +08:00
#endif
#else /* defined (_DOUBLE_IS_32BITS) */
const union __dmath __infinity[1] = {{ 0x7f800000, 0 }};
2000-02-18 03:39:52 +08:00
#endif /* defined (_DOUBLE_IS_32BITS) */