summaryrefslogtreecommitdiff
path: root/lib/libc/arch/alpha/gdtoa
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/alpha/gdtoa')
-rw-r--r--lib/libc/arch/alpha/gdtoa/Makefile.inc3
-rw-r--r--lib/libc/arch/alpha/gdtoa/arith.h6
-rw-r--r--lib/libc/arch/alpha/gdtoa/gd_qnan.h12
3 files changed, 21 insertions, 0 deletions
diff --git a/lib/libc/arch/alpha/gdtoa/Makefile.inc b/lib/libc/arch/alpha/gdtoa/Makefile.inc
new file mode 100644
index 00000000000..b74c512bc69
--- /dev/null
+++ b/lib/libc/arch/alpha/gdtoa/Makefile.inc
@@ -0,0 +1,3 @@
+# $OpenBSD: Makefile.inc,v 1.1 2008/09/07 20:36:07 martynas Exp $
+
+SRCS+= strtord.c
diff --git a/lib/libc/arch/alpha/gdtoa/arith.h b/lib/libc/arch/alpha/gdtoa/arith.h
new file mode 100644
index 00000000000..32513b96e90
--- /dev/null
+++ b/lib/libc/arch/alpha/gdtoa/arith.h
@@ -0,0 +1,6 @@
+#define IEEE_8087
+#define Arith_Kind_ASL 1
+#define Long int
+#define Intcast (int)(long)
+#define Double_Align
+#define X64_bit_pointers
diff --git a/lib/libc/arch/alpha/gdtoa/gd_qnan.h b/lib/libc/arch/alpha/gdtoa/gd_qnan.h
new file mode 100644
index 00000000000..99313b9adca
--- /dev/null
+++ b/lib/libc/arch/alpha/gdtoa/gd_qnan.h
@@ -0,0 +1,12 @@
+#define f_QNAN 0xffc00000
+#define d_QNAN0 0x0
+#define d_QNAN1 0xfff80000
+#define ld_QNAN0 0x0
+#define ld_QNAN1 0xfff80000
+#define ld_QNAN2 0x0
+#define ld_QNAN3 0x0
+#define ldus_QNAN0 0x0
+#define ldus_QNAN1 0x0
+#define ldus_QNAN2 0x0
+#define ldus_QNAN3 0xfff8
+#define ldus_QNAN4 0x0