Source-Changes-HG archive

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

[src/trunk]: src/lib/libm Add RISC-V MD bits.



details:   https://anonhg.NetBSD.org/src/rev/b31d606f7a5c
branches:  trunk
changeset: 332406:b31d606f7a5c
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 19 17:42:44 2014 +0000

description:
Add RISC-V MD bits.

diffstat:

 lib/libm/Makefile |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 9d471738d877 -r b31d606f7a5c lib/libm/Makefile
--- a/lib/libm/Makefile Fri Sep 19 17:42:19 2014 +0000
+++ b/lib/libm/Makefile Fri Sep 19 17:42:44 2014 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.165 2014/08/26 11:48:20 christos Exp $
+#  $NetBSD: Makefile,v 1.166 2014/09/19 17:42:44 matt Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -147,6 +147,19 @@
 # and emulation code isn't written yet.
 ARCH_SRCS = n_scalbn.S
 WARNS?=5
+.elif (${LIBC_MACHINE_CPU} == "riscv")
+.PATH: ${.CURDIR}/arch/riscv
+
+COMMON_SRCS += fenv.c
+
+.if ${MKSOFTFLOAT} == "no"
+ARCH_SRCS = e_sqrt.S e_sqrtf.S
+ARCH_SRCS += s_copysign.S s_copysignf.S
+ARCH_SRCS += s_fabs.S s_fabsf.S
+ARCH_SRCS += s_fma.S s_fmaf.S
+ARCH_SRCS += s_fmax.S s_fmaxf.S
+ARCH_SRCS += s_fmin.S s_fminf.S
+.endif
 .endif
 
 WARNS?=5



Home | Main Index | Thread Index | Old Index