Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / gen / infinity_ieee754.c
blobfd10170205e7edc4a3514fa741c61635e15193c0
1 /* $NetBSD: infinity_ieee754.c,v 1.2 2003/10/25 22:43:26 kleink Exp $ */
3 /*
4 * IEEE-compatible infinity.c -- public domain.
5 */
7 #include <sys/cdefs.h>
8 #if defined(LIBC_SCCS) && !defined(lint)
9 __RCSID("$NetBSD$");
10 #endif /* LIBC_SCCS and not lint */
12 #include <math.h>
13 #include <machine/endian.h>
15 const union __double_u __infinity =
16 #if BYTE_ORDER == BIG_ENDIAN
17 { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } };
18 #else
19 { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
20 #endif