12357939bSOlivier Houchard /* 22357939bSOlivier Houchard * infinity.c 32357939bSOlivier Houchard */ 42357939bSOlivier Houchard 52357939bSOlivier Houchard #include <sys/cdefs.h> 62357939bSOlivier Houchard __FBSDID("$FreeBSD$"); 72357939bSOlivier Houchard 82357939bSOlivier Houchard #include <math.h> 92357939bSOlivier Houchard 102357939bSOlivier Houchard /* bytes for +Infinity on a 387 */ 112357939bSOlivier Houchard const union __infinity_un __infinity = { 122357939bSOlivier Houchard #if BYTE_ORDER == BIG_ENDIAN 132357939bSOlivier Houchard { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } 142357939bSOlivier Houchard #else 152357939bSOlivier Houchard { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } 162357939bSOlivier Houchard #endif 172357939bSOlivier Houchard }; 182357939bSOlivier Houchard 192357939bSOlivier Houchard /* bytes for NaN */ 202357939bSOlivier Houchard const union __nan_un __nan = { 212357939bSOlivier Houchard #if BYTE_ORDER == BIG_ENDIAN 222357939bSOlivier Houchard {0xff, 0xc0, 0, 0} 232357939bSOlivier Houchard #else 242357939bSOlivier Houchard { 0, 0, 0xc0, 0xff } 252357939bSOlivier Houchard #endif 262357939bSOlivier Houchard }; 27