xref: /freebsd/lib/libc/arm/gen/infinity.c (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
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