diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-10 14:45:03 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-10 14:45:03 +0000 |
commit | a1ab13ffb6886a17aa1e1be328219d1d34b9d68a (patch) | |
tree | 838c4a97263bbcdc2d8e8728ecd744e5a9c73c03 /lib/libc/powerpc64/gen/infinity.c | |
parent | 8c6113bcffdd4be4e178fd6d72c3b9c4fb7d6639 (diff) | |
download | FreeBSD-src-a1ab13ffb6886a17aa1e1be328219d1d34b9d68a.zip FreeBSD-src-a1ab13ffb6886a17aa1e1be328219d1d34b9d68a.tar.gz |
Provide 64-bit PowerPC support in libc.
Obtained from: projects/ppc64
Diffstat (limited to 'lib/libc/powerpc64/gen/infinity.c')
-rw-r--r-- | lib/libc/powerpc64/gen/infinity.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libc/powerpc64/gen/infinity.c b/lib/libc/powerpc64/gen/infinity.c new file mode 100644 index 0000000..cf1695e --- /dev/null +++ b/lib/libc/powerpc64/gen/infinity.c @@ -0,0 +1,17 @@ +#include <sys/cdefs.h> +#if 0 +#if defined(LIBC_SCCS) && !defined(lint) +__RCSID("$NetBSD: infinity.c,v 1.2 1998/11/14 19:31:02 christos Exp $"); +#endif /* LIBC_SCCS and not lint */ +#endif +__FBSDID("$FreeBSD$"); + +/* infinity.c */ + +#include <math.h> + +/* bytes for +Infinity on powerpc */ +const union __infinity_un __infinity = { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } }; + +/* bytes for NaN */ +const union __nan_un __nan = { { 0xff, 0xc0, 0, 0 } }; |