infinity.c (8cf5ed5125ca8f57fa6f27892f3fbda25a52d354) | infinity.c (97a5390e6ddbe408a6ec8320d9081277d6ec6960) |
---|---|
1#include <sys/cdefs.h> 2#if 0 3#if defined(LIBC_SCCS) && !defined(lint) 4__RCSID("$NetBSD: infinity.c,v 1.2 1998/11/14 19:31:02 christos Exp $"); 5#endif /* LIBC_SCCS and not lint */ 6#endif 7__FBSDID("$FreeBSD$"); 8 9/* infinity.c */ 10 11#include <math.h> 12 13/* bytes for +Infinity on powerpc */ | 1#include <sys/cdefs.h> 2#if 0 3#if defined(LIBC_SCCS) && !defined(lint) 4__RCSID("$NetBSD: infinity.c,v 1.2 1998/11/14 19:31:02 christos Exp $"); 5#endif /* LIBC_SCCS and not lint */ 6#endif 7__FBSDID("$FreeBSD$"); 8 9/* infinity.c */ 10 11#include <math.h> 12 13/* bytes for +Infinity on powerpc */ |
14const union __infinity_un __infinity = { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } }; | 14const union __infinity_un __infinity = { 15#if BYTE_ORDER == BIG_ENDIAN 16 { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } 17#else 18 { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } 19#endif 20}; |
15 16/* bytes for NaN */ | 21 22/* bytes for NaN */ |
17const union __nan_un __nan = { { 0xff, 0xc0, 0, 0 } }; | 23const union __nan_un __nan = { 24#if BYTE_ORDER == BIG_ENDIAN 25 {0xff, 0xc0, 0, 0} 26#else 27 { 0, 0, 0xc0, 0xff } 28#endif 29}; 30 |