Module Name: src
Committed By: tnn
Date: Wed Jul 21 12:05:02 UTC 2021
Modified Files:
src/lib/libm: Makefile
Log Message:
libm: build fma(3), fmaf(3), fmal(3) on alpha
Alpha has no hardware-assisted fused multiply-add, so the fallback
C implementation must be used. A basic smoke test shows the
implementation works for
"x * x - 1.0f" vs "fmaf(x, x, -1.0f)" with "volatile float x = 1.0008f;"
To generate a diff of this commit:
cvs rdiff -u -r1.213 -r1.214 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.213 src/lib/libm/Makefile:1.214
--- src/lib/libm/Makefile:1.213 Sun Apr 25 23:43:20 2021
+++ src/lib/libm/Makefile Wed Jul 21 12:05:02 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.213 2021/04/25 23:43:20 christos Exp $
+# $NetBSD: Makefile,v 1.214 2021/07/21 12:05:02 tnn Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@@ -71,6 +71,7 @@ COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
.PATH: ${.CURDIR}/arch/alpha
ARCH_SRCS = s_copysign.S s_copysignf.S lrint.S
COMMON_SRCS+= fenv.c
+COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
COPTS+= -mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i
.elif (${LIBC_MACHINE_CPU} == "arm")