]> sourceware.org Git - newlib-cygwin.git/commit
libm/machine/arm: Add optimized fmaf and fma when available
authorKeith Packard via Newlib <newlib@sourceware.org>
Sat, 8 Aug 2020 22:34:13 +0000 (15:34 -0700)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 10 Aug 2020 19:04:12 +0000 (21:04 +0200)
commita44bc679a47403e5439ae46106a886fcb6240233
tree268aada7e68226f8ebfd99c3852a888af2d374d1
parent0c1989070ee1d849c7a25ad2eb6c8e3fb1df6393
libm/machine/arm: Add optimized fmaf and fma when available

When HAVE_FAST_FMAF is set, use the vfma.f32 instruction, when
HAVE_FAST_FMA is set, use the vfma.f64 instruction.

Usually the compiler built-ins will already have inlined these
instructions, but provide these symbols for cases where that doesn't
work instead of falling back to the (inaccurate) common code versions.

Signed-off-by: Keith Packard <keithp@keithp.com>
newlib/libm/common/s_fma.c
newlib/libm/common/sf_fma.c
newlib/libm/machine/arm/Makefile.am
newlib/libm/machine/arm/Makefile.in
newlib/libm/machine/arm/s_fma.c [new file with mode: 0644]
newlib/libm/machine/arm/sf_fma.c [new file with mode: 0644]
This page took 0.031572 seconds and 5 git commands to generate.