1178580Simp/* 2178580Simp * MD header for contrib/gdtoa 3178580Simp * 4178580Simp * $FreeBSD: releng/10.2/lib/libc/mips/arith.h 178580 2008-04-26 12:08:02Z imp $ 5178580Simp */ 6178580Simp 7178580Simp/* 8178580Simp * NOTE: The definitions in this file must be correct or strtod(3) and 9178580Simp * floating point formats in printf(3) will break! The file can be 10178580Simp * generated by running contrib/gdtoa/arithchk.c on the target 11178580Simp * architecture. See contrib/gdtoa/gdtoaimp.h for details. 12178580Simp */ 13178580Simp#include <machine/endian.h> 14178580Simp 15178580Simp#if BYTE_ORDER == BIG_ENDIAN 16178580Simp#define IEEE_MC68k 17178580Simp#define Arith_Kind_ASL 2 18178580Simp#define Double_Align 19178580Simp#else 20178580Simp/* TODO: Generate these values on a LE machine */ 21178580Simp/* Current values were stolen from ia64 except the 22178580Simp * Xpointer define. 23178580Simp */ 24178580Simp#define IEEE_8087 25178580Simp#define Arith_Kind_ASL 1 26178580Simp#define Long int 27178580Simp#define Intcast (int)(long) 28178580Simp#define Double_Align 29178580Simp#endif 30