xref: /netbsd-src/lib/libc/gen/infinity_ieee754.c (revision 23c8222edbfb0f0932d88a8351d3a0cf817dfb9e)
1 /*	$NetBSD: infinity_ieee754.c,v 1.2 2003/10/25 22:43:26 kleink Exp $	*/
2 
3 /*
4  * IEEE-compatible infinity.c -- public domain.
5  */
6 
7 #include <math.h>
8 #include <machine/endian.h>
9 
10 const union __double_u __infinity =
11 #if BYTE_ORDER == BIG_ENDIAN
12 	{ { 0x7f, 0xf0, 0, 0, 0, 0,    0,    0 } };
13 #else
14 	{ {    0,    0, 0, 0, 0, 0, 0xf0, 0x7f } };
15 #endif
16