xref: /freebsd/lib/libc/arm/gen/infinity.c (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1 /*
2  * infinity.c
3  */
4 
5 #include <sys/cdefs.h>
6 __FBSDID("$FreeBSD$");
7 
8 #include <math.h>
9 
10 /* bytes for +Infinity on a 387 */
11 const union __infinity_un __infinity = {
12 #if BYTE_ORDER == BIG_ENDIAN
13 	{ 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }
14 #else
15 	{ 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }
16 #endif
17 };
18 
19 /* bytes for NaN */
20 const union __nan_un __nan = {
21 #if BYTE_ORDER == BIG_ENDIAN
22 	{0xff, 0xc0, 0, 0}
23 #else
24 	{ 0, 0, 0xc0, 0xff }
25 #endif
26 };
27