Fix mdoc(7)/man(7) mix up.
[netbsd-mini2440.git] / lib / libc / gen / infinityl_dbl_ieee754.c
blob313892ecaf3f5a72f1f600234e0029738767e1b2
1 /* $NetBSD$ */
3 /*
4 * IEEE-compatible infinityl.c -- public domain.
5 * For platforms where long double == double.
6 */
8 #include <float.h>
9 #include <math.h>
10 #include <machine/endian.h>
12 #if LDBL_MANT_DIG != DBL_MANT_DIG
13 #error double / long double mismatch
14 #endif
16 const union __long_double_u __infinityl =
17 #if BYTE_ORDER == BIG_ENDIAN
18 { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } };
19 #else
20 { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
21 #endif