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

16 lines
369 B
C
Raw Normal View History

1995-01-18 04:27:24 +03:00
#ifndef lint
1995-06-28 06:18:21 +04:00
static char rcsid[] = "$Id: infinity.c,v 1.2 1995/06/28 02:18:21 jonathan Exp $";
1995-01-18 04:27:24 +03:00
#endif /* not lint */
/* infinity.c */
#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
1995-01-18 04:27:24 +03:00
char __infinity[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
1995-06-28 06:18:21 +04:00
#else
char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
#endif