Module Name:    src
Committed By:   he
Date:           Thu Jun 23 07:50:14 UTC 2022

Modified Files:
        src/lib/libm: Makefile

Log Message:
libm: build fma(3), fmaf(3), fmal(3) on powerpc.

For now this builds the C version, for completeness, so
that e.g. lang/ocaml can be configured & built.  However,
googling reveals that powerpc does have a "fused multiply add"
instruction, ref.
https://www.ibm.com/docs/en/aix/7.1?topic=set-fmadd-fma-floating-multiply-add-instruction
so this could probably be taken advantage of for a more
optimized version.


To generate a diff of this commit:
cvs rdiff -u -r1.214 -r1.215 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.214 src/lib/libm/Makefile:1.215
--- src/lib/libm/Makefile:1.214	Wed Jul 21 12:05:02 2021
+++ src/lib/libm/Makefile	Thu Jun 23 07:50:14 2022
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.214 2021/07/21 12:05:02 tnn Exp $
+#  $NetBSD: Makefile,v 1.215 2022/06/23 07:50:14 he Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -194,6 +194,7 @@ ARCH_SRCS += s_fmin.S s_fminf.S
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS += fenv.c
 .endif
+COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 
 .elif (${LIBC_MACHINE_CPU} == "mips")
 .PATH:	${.CURDIR}/arch/mips

Reply via email to