summaryrefslogtreecommitdiffstats
path: root/lib/libc/ia64/arith.h
blob: 67265284dbf0a147943ffcaaf18313d845224d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * MD header for contrib/gdtoa
 *
 * $FreeBSD$
 */

/*
 * NOTE: The definitions in this file must be correct or strtod(3) and
 * floating point formats in printf(3) will break!  The file can be
 * generated by running contrib/gdtoa/arithchk.c on the target
 * architecture.  See contrib/gdtoa/gdtoaimp.h for details.
 */

#include <machine/endian.h>

#if _BYTE_ORDER == _LITTLE_ENDIAN

#define IEEE_8087
#define Arith_Kind_ASL 1
#define Long int
#define Intcast (int)(long)
#define Double_Align
#define X64_bit_pointers

#else /* _BYTE_ORDER == _LITTLE_ENDIAN */

#define IEEE_MC68k
#define Arith_Kind_ASL 2
#define Long int
#define Intcast (int)(long)
#define Double_Align
#define X64_bit_pointers
#ifdef gcc_bug	/* XXX Why does arithchk report sudden underflow here? */
#define Sudden_Underflow
#endif

#endif
OpenPOWER on IntegriCloud