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