1 /* $NetBSD: infinity_ieee754.c,v 1.3 2005/06/12 05:21:27 lukem Exp $ */
4 * IEEE-compatible infinity.c -- public domain.
8 #if defined(LIBC_SCCS) && !defined(lint)
9 __RCSID("$NetBSD: infinity_ieee754.c,v 1.3 2005/06/12 05:21:27 lukem Exp $");
10 #endif /* LIBC_SCCS and not lint */
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 } };
19 { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };