diff options
author | cognet <cognet@FreeBSD.org> | 2004-05-14 12:04:31 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-05-14 12:04:31 +0000 |
commit | bb6bbd6342ef3a05d837b89817ec6f058d1497b3 (patch) | |
tree | 6da949d33b96ce7f3985a2cbc32baeccf187c4d6 /lib/libc/arm/gen/infinity.c | |
parent | 90f48ef1d2da8652d325e845334302aef9b6f5b9 (diff) | |
download | FreeBSD-src-bb6bbd6342ef3a05d837b89817ec6f058d1497b3.zip FreeBSD-src-bb6bbd6342ef3a05d837b89817ec6f058d1497b3.tar.gz |
Import the FreeBSD/arm libc bits.
Obtained from: NetBSD
Diffstat (limited to 'lib/libc/arm/gen/infinity.c')
-rw-r--r-- | lib/libc/arm/gen/infinity.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/libc/arm/gen/infinity.c b/lib/libc/arm/gen/infinity.c new file mode 100644 index 0000000..60faf42 --- /dev/null +++ b/lib/libc/arm/gen/infinity.c @@ -0,0 +1,26 @@ +/* + * infinity.c + */ + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + +#include <math.h> + +/* bytes for +Infinity on a 387 */ +const union __infinity_un __infinity = { +#if BYTE_ORDER == BIG_ENDIAN + { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } +#else + { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } +#endif +}; + +/* bytes for NaN */ +const union __nan_un __nan = { +#if BYTE_ORDER == BIG_ENDIAN + {0xff, 0xc0, 0, 0} +#else + { 0, 0, 0xc0, 0xff } +#endif +}; |