diff options
Diffstat (limited to 'lib/libc/ia64')
-rw-r--r-- | lib/libc/ia64/arith.h | 30 | ||||
-rw-r--r-- | lib/libc/ia64/stdlib/gdtoa.mk | 5 |
2 files changed, 35 insertions, 0 deletions
diff --git a/lib/libc/ia64/arith.h b/lib/libc/ia64/arith.h new file mode 100644 index 0000000..9102826 --- /dev/null +++ b/lib/libc/ia64/arith.h @@ -0,0 +1,30 @@ +/* + * MD header for contrib/gdtoa + * + * $FreeBSD$ + */ + +#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 diff --git a/lib/libc/ia64/stdlib/gdtoa.mk b/lib/libc/ia64/stdlib/gdtoa.mk new file mode 100644 index 0000000..50f2f0d --- /dev/null +++ b/lib/libc/ia64/stdlib/gdtoa.mk @@ -0,0 +1,5 @@ +# $FreeBSD$ + +# Long double is 80 bits +GDTOASRCS+=strtopx.c +MDSRCS+=machdep_ldisx.c |