summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/gen/infinity.c
blob: 464b4029b35ae4df8124a3c65168906e13d8d759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * infinity.c
 */

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <math.h>

/* bytes for +Infinity on a 387 */
const union __infinity_un __infinity = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };

/* bytes for NaN */
const union __nan_un __nan = { { 0, 0, 0xc0, 0xff } };
OpenPOWER on IntegriCloud