summaryrefslogtreecommitdiffstats
path: root/lib/libc/riscv/arith.h
diff options
context:
space:
mode:
authorbr <br@FreeBSD.org>2016-01-17 15:21:23 +0000
committerbr <br@FreeBSD.org>2016-01-17 15:21:23 +0000
commite0daa8fb6535861d32643e7056fb5025d04e772e (patch)
treedc2c17b47c2052a9bdd63857fff9be0a1be00232 /lib/libc/riscv/arith.h
parent7d0828c94e6533f7d0d139b0242cf16e417eab8b (diff)
downloadFreeBSD-src-e0daa8fb6535861d32643e7056fb5025d04e772e.zip
FreeBSD-src-e0daa8fb6535861d32643e7056fb5025d04e772e.tar.gz
Bring in initial libc and libstand support for RISC-V.
Reviewed by: andrew, emaste, kib Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D4943
Diffstat (limited to 'lib/libc/riscv/arith.h')
-rw-r--r--lib/libc/riscv/arith.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libc/riscv/arith.h b/lib/libc/riscv/arith.h
new file mode 100644
index 0000000..ecb1a33
--- /dev/null
+++ b/lib/libc/riscv/arith.h
@@ -0,0 +1,19 @@
+/*
+ * MD header for contrib/gdtoa
+ *
+ * $FreeBSD$
+ */
+
+/*
+ * 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.
+ */
+
+#define IEEE_8087
+#define Arith_Kind_ASL 1
+#define Long int
+#define Intcast (int)(long)
+#define Double_Align
+#define X64_bit_pointers
OpenPOWER on IntegriCloud