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