2003-03-12 20:30:00 +00:00
|
|
|
/*
|
|
|
|
* MD header for contrib/gdtoa
|
|
|
|
*
|
|
|
|
* $FreeBSD$
|
|
|
|
*/
|
|
|
|
|
2003-05-08 13:50:44 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2003-03-12 20:30:00 +00:00
|
|
|
#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
|