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