NetBSD/lib/libc/gen/ieee754_infinity.c

16 lines
343 B
C

/* $NetBSD: ieee754_infinity.c,v 1.1 2002/02/19 13:08:13 simonb 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