Annotation of src/lib/libc/gen/infinity_ieee754.c, Revision 1.3
1.3 ! lukem 1: /* $NetBSD: infinity_ieee754.c,v 1.2 2003/10/25 22:43:26 kleink Exp $ */
1.1 kleink 2:
3: /*
4: * IEEE-compatible infinity.c -- public domain.
5: */
6:
1.3 ! lukem 7: #include <sys/cdefs.h>
! 8: #if defined(LIBC_SCCS) && !defined(lint)
! 9: __RCSID("$NetBSD$");
! 10: #endif /* LIBC_SCCS and not lint */
! 11:
1.1 kleink 12: #include <math.h>
13: #include <machine/endian.h>
14:
15: const union __double_u __infinity =
16: #if BYTE_ORDER == BIG_ENDIAN
1.2 kleink 17: { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } };
1.1 kleink 18: #else
1.2 kleink 19: { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
1.1 kleink 20: #endif
CVSweb <webmaster@jp.NetBSD.org>