1 /* $NetBSD: infinityl_dbl_ieee754.c,v 1.1 2003/10/25 22:31:20 kleink Exp $ */
2 /* $DragonFly: src/lib/libc/gen/infinityl_dbl.c,v 1.1 2005/07/26 21:15:19 joerg Exp $ */
5 * IEEE-compatible infinityl.c -- public domain.
6 * For platforms where long double == double.
9 #include <sys/endian.h>
13 #if LDBL_MANT_DIG != DBL_MANT_DIG
14 #error double / long double mismatch
17 const union __long_double_u __infinityl
=
18 #if BYTE_ORDER == BIG_ENDIAN
19 { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } };
21 { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };