glibc/sysdeps/sparc/sparc32
Joseph Myers 4b6574a6f6 Redirect fma calls to __fma in libm
include/math.h has a mechanism to redirect internal calls to various
libm functions, that can often be inlined by the compiler, to call
non-exported __* names for those functions in the case when the calls
aren't inlined, with the redirection being disabled when
NO_MATH_REDIRECT.  Add fma to the functions to which this mechanism is
applied.

At present, libm-internal fma calls (generally to __builtin_fma*
functions) are only done when it's known the call will be inlined,
with alternative code not relying on an fma operation being used in
the caller otherwise.  This patch is in preparation for adding the TS
18661 / C2X narrowing fma functions to glibc; it will be natural for
the narrowing function implementations to call the underlying fma
functions unconditionally, with this either being inlined or resulting
in an __fma* call.  (Using two levels of round-to-odd computation like
that, in the case where there isn't an fma hardware instruction, isn't
optimal but is certainly a lot simpler for the initial implementation
than writing different narrowing fma implementations for all the
various pairs of formats.)

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by the patch (using
<https://sourceware.org/pipermail/libc-alpha/2021-September/130991.html>
to fix installed library stripping in build-many-glibcs.py).  Also
tested for x86_64.
2021-09-15 22:57:35 +00:00
..
bits Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fpu Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
sparcv9 Redirect fma calls to __fma in libm 2021-09-15 22:57:35 +00:00
__longjmp.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
add_n.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
addmul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
alloca.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
backtrace.h
bsd-_setjmp.S
bsd-setjmp.S
bzero.c
configure sparc: Use atomic compiler builtins on sparc 2019-11-27 10:31:13 -03:00
configure.ac sparc: Use atomic compiler builtins on sparc 2019-11-27 10:31:13 -03:00
dl-irel.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-machine.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-plt.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-trampoline.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dotmul.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
ieee754.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies Remove sysdeps/sparc/sparc32/soft-fp directory. 2018-05-25 16:51:15 +00:00
jmpbuf-offsets.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
jmpbuf-unwind.h Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
lshift.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
memchr.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
memcpy.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
memset.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
mul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread_spin_lock.S nptl: Move pthread_spin_lock into libc 2021-04-23 17:06:46 +02:00
pthread_spin_trylock.S nptl: Move pthread_spin_trylock into libc 2021-04-23 17:06:48 +02:00
pthreaddef.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_add.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_cmp.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_cmpe.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_div.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_dtoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_feq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_fge.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_fgt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_fle.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_flt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_fne.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_itoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_lltoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_mul.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_neg.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtod.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtoi.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtoll.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtos.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtou.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtoull.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_sqrt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_stoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_sub.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_ulltoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_util.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_utoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
rem.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
rshift.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sdiv.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
setjmp.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sfp-machine.h Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
stackguard-macros.h
start.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
stpcpy.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strcat.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strchr.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strcmp.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strcpy.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strlen.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strrchr.c
sub_n.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
submul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-audit.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
udiv.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
umul.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
urem.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
Versions Remove sysdeps/sparc/sparc32/soft-fp directory. 2018-05-25 16:51:15 +00:00