summaryrefslogtreecommitdiff
path: root/lib/libc/arch/sh/gen/infinity.c
blob: a4f3e8ae9e4e8ffdaf1c84c9e3f46260fd67fbad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$OpenBSD: infinity.c,v 1.4 2014/07/21 01:51:10 guenther Exp $	*/

/* infinity.c */

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

/* bytes for +Infinity on a SH4 FPU (double precision) */
char __infinity[] __attribute__((__aligned__(sizeof(double)))) =
#if BYTE_ORDER == LITTLE_ENDIAN
    { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
#else
    { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 };
#endif