summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/mips64/gen/infinity.c
blob: 896ca6790660289a4e73200f8d2966dcd79ad629 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
/*	$OpenBSD: infinity.c,v 1.3 2014/07/21 01:51:10 guenther Exp $ */
/* infinity.c */

#include <endian.h>
#include <math.h>

/* bytes for +Infinity on a MIPS */
#if BYTE_ORDER == BIG_ENDIAN
char __infinity[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
#else
char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
#endif