Remove building with NOCRYPTO option
[minix.git] / lib / libc / gen / infinityl_dbl_ieee754.c
blob3b77bdfe807b7aa5fb5c5ae0dc357fe3f9c2dee8
1 /* $NetBSD: infinityl_dbl_ieee754.c,v 1.1 2003/10/25 22:31:20 kleink Exp $ */
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