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

16 lines
357 B
C
Raw Normal View History

/* $NetBSD: infinity.c,v 1.3 1996/09/16 18:10:54 jonathan 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
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