Files
freebsd/lib/msun/amd64/s_fmaf_avx.S
T
Konstantin Belousov 18a5549bcb lib/msun amd64: use AVX FMA instructions for fma(3) and fmaf(3) when available
Utilize the ARCHLEVEL framework from libc/amd64/string to provide the
way for runtime selection of the implementation, if wanted.

Reviewed by:	fuz, kfv
Discussed with:	kargl
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D59462
2026-09-08 15:13:29 +03:00

25 lines
441 B
ArmAsm

/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright 2026 The FreeBSD Foundation
*
* This software were developed by
* Konstantin Belousov <kib@FreeBSD.org> under sponsorship from
* the FreeBSD Foundation.
*/
#include "amd64_archlevel.h"
.text
ARCHENTRY(fmaf, avx):
vfmadd132ss %xmm1, %xmm2, %xmm0
ret
ARCHEND(fmaf, avx):
ARCHFUNCS(fmaf)
ARCHFUNC(fmaf, sw)
NOARCHFUNC
NOARCHFUNC
ARCHFUNC(fmaf, avx)
ENDARCHFUNCS(fmaf)