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.
This commit is contained in:
he 2022-06-23 07:50:14 +00:00
parent df01e1af48
commit 56c7bffc6c
1 changed files with 2 additions and 1 deletions

View File

@ -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