From 9fd2283a990835572fbc5a3e68a398fd94d15937 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 19 Sep 2014 17:42:44 +0000 Subject: [PATCH] Add RISC-V MD bits. --- lib/libm/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/libm/Makefile b/lib/libm/Makefile index df7370e715d6..1643c9111ab2 100644 --- a/lib/libm/Makefile +++ b/lib/libm/Makefile @@ -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 @@ ARCH_SRCS = e_acos.S e_asin.S e_atanh.S e_cosh.S e_exp.S e_fmod.S e_log.S \ # 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