Merge from vendor branch BZIP:
[dragonfly.git] / lib / libc / gen / infinity.c
1 /*      $NetBSD: infinity_ieee754.c,v 1.3 2005/06/12 05:21:27 lukem Exp $       */
2 /*      $DragonFly: src/lib/libc/gen/infinity.c,v 1.1 2005/07/26 21:15:19 joerg Exp $ */
3
4 /*
5  * IEEE-compatible infinity.c -- public domain.
6  */
7
8 #include <sys/endian.h>
9 #include <math.h>
10
11 const union __double_u __infinity =
12 #if BYTE_ORDER == BIG_ENDIAN
13         { { 0x7f, 0xf0, 0, 0, 0, 0,    0,    0 } };
14 #else
15         { {    0,    0, 0, 0, 0, 0, 0xf0, 0x7f } };
16 #endif