diff options
author | imp <imp@FreeBSD.org> | 2008-04-26 12:08:02 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-04-26 12:08:02 +0000 |
commit | 87785b8e3ae758d6475055fc7b9fdc1a7640aac0 (patch) | |
tree | e5f98313cf389dbc202e992c4946cbd65e89bcf4 /lib/libc/mips/gen/infinity.c | |
parent | cea060d682520e7be22be9111ea74d28f51de01a (diff) | |
download | FreeBSD-src-87785b8e3ae758d6475055fc7b9fdc1a7640aac0.zip FreeBSD-src-87785b8e3ae758d6475055fc7b9fdc1a7640aac0.tar.gz |
Add mips support libc from the mips2-jnpr branch of perforce.
Diffstat (limited to 'lib/libc/mips/gen/infinity.c')
-rw-r--r-- | lib/libc/mips/gen/infinity.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/libc/mips/gen/infinity.c b/lib/libc/mips/gen/infinity.c new file mode 100644 index 0000000..55cf25f --- /dev/null +++ b/lib/libc/mips/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 + {0x7f, 0xa0, 0, 0} +#else + { 0, 0, 0xa0, 0x7f } +#endif +}; |