xref: /freebsd/lib/libc/powerpc/gen/infinity.c (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
18238b87bSPeter Grehan #include <sys/cdefs.h>
28238b87bSPeter Grehan #if 0
38238b87bSPeter Grehan #if defined(LIBC_SCCS) && !defined(lint)
48238b87bSPeter Grehan __RCSID("$NetBSD: infinity.c,v 1.2 1998/11/14 19:31:02 christos Exp $");
58238b87bSPeter Grehan #endif /* LIBC_SCCS and not lint */
68238b87bSPeter Grehan #endif
78238b87bSPeter Grehan /* infinity.c */
88238b87bSPeter Grehan 
98238b87bSPeter Grehan #include <math.h>
108238b87bSPeter Grehan 
118238b87bSPeter Grehan /* bytes for +Infinity on powerpc */
12*97a5390eSNathan Whitehorn const union __infinity_un __infinity = {
13*97a5390eSNathan Whitehorn #if BYTE_ORDER == BIG_ENDIAN
14*97a5390eSNathan Whitehorn 	{ 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }
15*97a5390eSNathan Whitehorn #else
16*97a5390eSNathan Whitehorn 	{ 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }
17*97a5390eSNathan Whitehorn #endif
18*97a5390eSNathan Whitehorn };
198cf5ed51SMike Barcroft 
208cf5ed51SMike Barcroft /* bytes for NaN */
21*97a5390eSNathan Whitehorn const union __nan_un __nan = {
22*97a5390eSNathan Whitehorn #if BYTE_ORDER == BIG_ENDIAN
23*97a5390eSNathan Whitehorn 	{0xff, 0xc0, 0, 0}
24*97a5390eSNathan Whitehorn #else
25*97a5390eSNathan Whitehorn 	{ 0, 0, 0xc0, 0xff }
26*97a5390eSNathan Whitehorn #endif
27*97a5390eSNathan Whitehorn };
28*97a5390eSNathan Whitehorn 
29