summaryrefslogtreecommitdiff
path: root/lib/libc/gen/infinity_ieee754.c
blob: 546a830cf9409028758a78aa185d66ea241f36c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$NetBSD: infinity_ieee754.c,v 1.2 2003/10/25 22:43:26 kleink Exp $	*/

/*
 * IEEE-compatible infinity.c -- public domain.
 */

#include <math.h>
#include <machine/endian.h>

const union __double_u __infinity =
#if BYTE_ORDER == BIG_ENDIAN
	{ { 0x7f, 0xf0, 0, 0, 0, 0,    0,    0 } };
#else
	{ {    0,    0, 0, 0, 0, 0, 0xf0, 0x7f } };
#endif