NetBSD/lib/libc/arch/mips/gen/infinity.c

16 lines
381 B
C
Raw Normal View History

1998-11-14 22:31:01 +03:00
/* $NetBSD: infinity.c,v 1.5 1998/11/14 19:31:02 christos Exp $ */
1995-01-18 04:27:24 +03:00
/*
* IEEE-compatible infinity.c -- public domain.
*/
1995-01-18 04:27:24 +03:00
#include <math.h>
1995-06-28 06:18:21 +04:00
#include <machine/endian.h>
1995-01-18 04:27:24 +03:00
/* bytes for +Infinity on a MIPS */
1995-06-28 06:18:21 +04:00
#if BYTE_ORDER == BIG_ENDIAN
1998-11-14 22:31:01 +03:00
const char __infinity[] = { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 };
1995-06-28 06:18:21 +04:00
#else
1998-11-14 22:31:01 +03:00
const char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
1995-06-28 06:18:21 +04:00
#endif