xref: /freebsd-13-stable/lib/libc/mips/arith.h (revision 17da660ad5b3b9cd90e164dd4dbb9beaa7203054)
1 /*
2  * MD header for contrib/gdtoa
3  */
4 
5 /*
6  * NOTE: The definitions in this file must be correct or strtod(3) and
7  * floating point formats in printf(3) will break!  The file can be
8  * generated by running contrib/gdtoa/arithchk.c on the target
9  * architecture.  See contrib/gdtoa/gdtoaimp.h for details.
10  */
11 #include <machine/endian.h>
12 
13 #if BYTE_ORDER == BIG_ENDIAN
14 #define IEEE_MC68k
15 #define Arith_Kind_ASL 2
16 #define Double_Align
17 #else
18 /* TODO: Generate these values on a LE machine */
19 #define IEEE_8087
20 #define Arith_Kind_ASL 1
21 #define Long int
22 #define Intcast (int)(long)
23 #define Double_Align
24 #endif
25