glibc/sysdeps/alpha/fpu
Adhemerval Zanella bccb0648ea math: Use tanf from CORE-MATH
The CORE-MATH implementation is correctly rounded (for any rounding mode)
and shows better performance to the generic tanf.

The code was adapted to glibc style, to use the definition of
math_config.h, to remove errno handling, and to use a generic
128 bit routine for ABIs that do not support it natively.

Benchtest on x64_64 (Ryzen 9 5900X, gcc 14.2.1), aarch64 (neoverse1,
gcc 13.2.1), and powerpc (POWER10, gcc 13.2.1):

latency                       master       patched  improvement
x86_64                       82.3961       54.8052       33.49%
x86_64v2                     82.3415       54.8052       33.44%
x86_64v3                     69.3661       50.4864       27.22%
i686                         219.271       45.5396       79.23%
aarch64                      29.2127       19.1951       34.29%
power10                      19.5060       16.2760       16.56%

reciprocal-throughput         master       patched  improvement
x86_64                       28.3976       19.7334       30.51%
x86_64v2                     28.4568       19.7334       30.65%
x86_64v3                     21.1815       16.1811       23.61%
i686                         105.016       15.1426       85.58%
aarch64                      18.1573       10.7681       40.70%
power10                       8.7207        8.7097        0.13%

Signed-off-by: Alexei Sibidanov <sibid@uvic.ca>
Signed-off-by: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: DJ Delorie <dj@redhat.com>
2024-11-22 10:52:27 -03:00
..
bits Refer to C23 in place of C2X in glibc 2024-02-01 11:02:01 +00:00
cabsf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
cargf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
cfloat-compat.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
cimagf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
conjf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
crealf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
e_sqrt.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
e_sqrtf.c alpha: Use builtin sqrt{f} 2020-06-22 11:09:49 -03:00
fclrexcpt.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fedisblxcpt.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
feenablxcpt.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fegetenv.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fegetexcept.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fegetmode.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fegetround.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
feholdexcpt.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fenv_libc.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fesetenv.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fesetexcept.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fesetmode.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fesetround.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
feupdateenv.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fgetexcptflg.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fpu_control.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fsetexcptflg.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ftestexcept.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
get-rounding-mode.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
libm-test-ulps math: Use tanf from CORE-MATH 2024-11-22 10:52:27 -03:00
libm-test-ulps-name Do not hardcode platform names in manual/libm-err-tab.pl (bug 14139). 2016-11-04 16:49:06 +00:00
math-barriers.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
math-use-builtins-sqrt.h alpha: Use builtin sqrt{f} 2020-06-22 11:09:49 -03:00
s_cacosf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_cacoshf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_casinf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_casinhf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_catanf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_catanhf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_ccosf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_ccoshf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_cexpf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_clog10f.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_clogf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_cpowf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_cprojf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_csinf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_csinhf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_csqrtf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_ctanf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_ctanhf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_fma.c Use libm_alias_double for dbl-64 fma. 2017-10-04 20:32:48 +00:00
s_isnan.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_isnanf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llrint.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llrintf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llround.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llroundf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_lrint.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_lrintf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_lround.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_lroundf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_rint.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_rintf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Versions Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00