x86_64: add single instruction fma
authorSzabolcs Nagy <nsz@port70.net>
Sat, 22 Sep 2018 21:43:42 +0000 (21:43 +0000)
committerRich Felker <dalias@aerifal.cx>
Mon, 15 Oct 2018 18:45:28 +0000 (14:45 -0400)
commite9016138886527a739804634048aeac16092dc1e
treeb7581245a4ff1da3f27bfdc5826ff362a8ab8430
parent7396ef0a05b834bf92c4f268a3336c0bc10c3593
x86_64: add single instruction fma

fma is only available on recent x86_64 cpus and it is much faster than
a software fma, so this should be done with a runtime check, however
that requires more changes, this patch just adds the code so it can be
tested when musl is compiled with -mfma or -mfma4.
src/math/x32/fma.c [new file with mode: 0644]
src/math/x32/fmaf.c [new file with mode: 0644]
src/math/x86_64/fma.c [new file with mode: 0644]
src/math/x86_64/fmaf.c [new file with mode: 0644]