1 /* 2 * infinity.c 3 */ 4 5 #include <math.h> 6 7 /* bytes for +Infinity on a 387 */ 8 const union __infinity_un __infinity = { 9 #if BYTE_ORDER == BIG_ENDIAN 10 { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } 11 #else 12 { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } 13 #endif 14 }; 15 16 /* bytes for NaN */ 17 const union __nan_un __nan = { 18 #if BYTE_ORDER == BIG_ENDIAN 19 {0xff, 0xc0, 0, 0} 20 #else 21 { 0, 0, 0xc0, 0xff } 22 #endif 23 }; 24