summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2020-06-25 02:28:34 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2020-06-25 02:28:34 +0000
commit7f6fdd33a1c23874e9539dbdd9bb0ab4a9193ec8 (patch)
tree8db9305fa4727d6c00efecfaa41e31a9aba412b2 /lib
parentdfb9ba85deca2ab0393f1c18b3840b5b523ebb48 (diff)
PowerPC64 libc/arch/powerpc/gdtoa files
This is a almost a direct copy from powerpc with 64 bit mods, with two additions present in 64 arch. NOTE: long double 128 is not supported currently.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/powerpc64/gdtoa/Makefile.inc3
-rw-r--r--lib/libc/arch/powerpc64/gdtoa/arith.h5
-rw-r--r--lib/libc/arch/powerpc64/gdtoa/gd_qnan.h12
3 files changed, 20 insertions, 0 deletions
diff --git a/lib/libc/arch/powerpc64/gdtoa/Makefile.inc b/lib/libc/arch/powerpc64/gdtoa/Makefile.inc
new file mode 100644
index 00000000000..8885c03ebba
--- /dev/null
+++ b/lib/libc/arch/powerpc64/gdtoa/Makefile.inc
@@ -0,0 +1,3 @@
+# $OpenBSD: Makefile.inc,v 1.1 2020/06/25 02:28:33 drahn Exp $
+
+SRCS+= strtord.c
diff --git a/lib/libc/arch/powerpc64/gdtoa/arith.h b/lib/libc/arch/powerpc64/gdtoa/arith.h
new file mode 100644
index 00000000000..0160f618739
--- /dev/null
+++ b/lib/libc/arch/powerpc64/gdtoa/arith.h
@@ -0,0 +1,5 @@
+#define IEEE_MC68k
+#define Arith_Kind_ASL 2
+#define Long int
+#define Intcast (int)(long)
+#define Double_Align
diff --git a/lib/libc/arch/powerpc64/gdtoa/gd_qnan.h b/lib/libc/arch/powerpc64/gdtoa/gd_qnan.h
new file mode 100644
index 00000000000..3327dc12024
--- /dev/null
+++ b/lib/libc/arch/powerpc64/gdtoa/gd_qnan.h
@@ -0,0 +1,12 @@
+#define f_QNAN 0x7fc00000
+#define d_QNAN0 0x7ff80000
+#define d_QNAN1 0x0
+#define ld_QNAN0 0x7ff80000
+#define ld_QNAN1 0x0
+#define ld_QNAN2 0x0
+#define ld_QNAN3 0x0
+#define ldus_QNAN0 0x7ff8
+#define ldus_QNAN1 0x0
+#define ldus_QNAN2 0x0
+#define ldus_QNAN3 0x0
+#define ldus_QNAN4 0x0