Source-Changes-HG archive

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

[src/trunk]: src/lib/libm add nexttoward for mips64 and aarch64



details:   https://anonhg.NetBSD.org/src/rev/2b65017f469e
branches:  trunk
changeset: 826212:2b65017f469e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Aug 21 17:10:34 2017 +0000

description:
add nexttoward for mips64 and aarch64

diffstat:

 lib/libm/Makefile |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 2e40451c5cb1 -r 2b65017f469e lib/libm/Makefile
--- a/lib/libm/Makefile Mon Aug 21 17:01:04 2017 +0000
+++ b/lib/libm/Makefile Mon Aug 21 17:10:34 2017 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.201 2017/08/17 13:58:39 he Exp $
+#  $NetBSD: Makefile,v 1.202 2017/08/21 17:10:34 christos Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -60,7 +60,7 @@
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS+= fenv.c
 .endif
-COMMON_SRCS+= s_rintl.c
+COMMON_SRCS+= s_nexttoward.c s_rintl.c
 COMMON_SRCS+= e_sqrtl.c
 COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 
@@ -195,6 +195,10 @@
 COMMON_SRCS += fenv.c
 .endif
 COMMON_SRCS+= s_rintl.c
+.if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el") \
+    && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
+COMMON_SRCS+= s_nexttoward.c
+.endif
 
 .elif (${LIBC_MACHINE_CPU} == "sh3")
 .PATH: ${.CURDIR}/arch/sh3



Home | Main Index | Thread Index | Old Index