Module Name: src Committed By: matt Date: Fri Sep 19 17:42:44 UTC 2014
Modified Files: src/lib/libm: Makefile Log Message: Add RISC-V MD bits. To generate a diff of this commit: cvs rdiff -u -r1.165 -r1.166 src/lib/libm/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libm/Makefile diff -u src/lib/libm/Makefile:1.165 src/lib/libm/Makefile:1.166 --- src/lib/libm/Makefile:1.165 Tue Aug 26 11:48:20 2014 +++ src/lib/libm/Makefile Fri Sep 19 17:42:44 2014 @@ -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 # 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