minix/lib/nbsd_libc/gen/infinity_ieee754.c
Gianluca Guida b6cbf7203b Import unmodified NetBSD libc in trunk
This patch imports the unmodified current version of NetBSD libc.
The NetBSD includes are in /nbsd_include, while the libc code itself is 
split between lib/nbsd_libc and common/lib/libc.
2011-02-14 19:36:03 +00:00

20 lines
523 B
C

/* $NetBSD: infinity_ieee754.c,v 1.3 2005/06/12 05:21:27 lukem Exp $ */
/*
* IEEE-compatible infinity.c -- public domain.
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: infinity_ieee754.c,v 1.3 2005/06/12 05:21:27 lukem Exp $");
#endif /* LIBC_SCCS and not lint */
#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