aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mips/arith.h
blob: b4e176312ee23c58263726e83f340866670647f9 (plain) (blame)
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
/*
 * MD header for contrib/gdtoa
 *
 * $FreeBSD: src/lib/libc/mips/arith.h,v 1.1.2.1.6.1 2010/12/21 17:09:25 kensmith Exp $
 */

/*
 * 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 == BIG_ENDIAN
#define IEEE_MC68k
#define Arith_Kind_ASL 2
#define Double_Align
#else
/* TODO: Generate these values on a LE machine */
/* Current values were stolen from ia64 except the
 * Xpointer define.
 */
#define IEEE_8087
#define Arith_Kind_ASL 1
#define Long int
#define Intcast (int)(long)
#define Double_Align
#endif