Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/riscv/include Our current configuration is that lon...



details:   https://anonhg.NetBSD.org/src/rev/6cd6c065b91b
branches:  trunk
changeset: 450421:6cd6c065b91b
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Apr 13 15:57:31 2019 +0000

description:
Our current configuration is that long double is 128bit, so reflect
that in the relevant headers.

Taken from sparc64.

diffstat:

 sys/arch/riscv/include/ieee.h |  3 ++-
 sys/arch/riscv/include/math.h |  6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 32ffb92d0a84 -r 6cd6c065b91b sys/arch/riscv/include/ieee.h
--- a/sys/arch/riscv/include/ieee.h     Sat Apr 13 15:56:18 2019 +0000
+++ b/sys/arch/riscv/include/ieee.h     Sat Apr 13 15:57:31 2019 +0000
@@ -1,3 +1,4 @@
-/* $NetBSD: ieee.h,v 1.1 2014/09/19 17:36:26 matt Exp $ */
+/* $NetBSD: ieee.h,v 1.2 2019/04/13 15:57:31 maya Exp $ */
 
+#include <riscv/math.h>                /* for #define __HAVE_LONG_DOUBLE 128 */
 #include <sys/ieee754.h>
diff -r 32ffb92d0a84 -r 6cd6c065b91b sys/arch/riscv/include/math.h
--- a/sys/arch/riscv/include/math.h     Sat Apr 13 15:56:18 2019 +0000
+++ b/sys/arch/riscv/include/math.h     Sat Apr 13 15:57:31 2019 +0000
@@ -1,3 +1,7 @@
-/* $NetBSD: math.h,v 1.1 2014/09/19 17:36:26 matt Exp $ */
+/* $NetBSD: math.h,v 1.2 2019/04/13 15:57:31 maya Exp $ */
 
 #define __HAVE_NANF
+
+#if defined(_LP64) || defined(_KERNEL)
+#define        __HAVE_LONG_DOUBLE      128
+#endif



Home | Main Index | Thread Index | Old Index