xref: /freebsd/lib/libc/powerpc/gen/infinity.c (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 #include <sys/cdefs.h>
2 #if 0
3 #if defined(LIBC_SCCS) && !defined(lint)
4 __RCSID("$NetBSD: infinity.c,v 1.2 1998/11/14 19:31:02 christos Exp $");
5 #endif /* LIBC_SCCS and not lint */
6 #endif
7 /* infinity.c */
8 
9 #include <math.h>
10 
11 /* bytes for +Infinity on powerpc */
12 const union __infinity_un __infinity = {
13 #if BYTE_ORDER == BIG_ENDIAN
14 	{ 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }
15 #else
16 	{ 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }
17 #endif
18 };
19 
20 /* bytes for NaN */
21 const union __nan_un __nan = {
22 #if BYTE_ORDER == BIG_ENDIAN
23 	{0xff, 0xc0, 0, 0}
24 #else
25 	{ 0, 0, 0xc0, 0xff }
26 #endif
27 };
28 
29