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

The code was adapted to glibc style and to use the definition of
math_config.h (to handle errno, overflow, and underflow).

Benchtest on x64_64 (Ryzen 9 5900X, gcc 14.2.1), aarch64 (Neoverse-N1,
gcc 13.3.1), and powerpc (POWER10, gcc 13.2.1):

Latency                      master        patched   improvement
x86_64                      96.7402        36.4026        62.37%
x86_64v2                    97.5391        33.4625        65.69%
x86_64v3                    82.1778        30.8668        62.44%
i686                         120.58        94.8302        21.35%
aarch64                     32.3558        12.8881        60.17%
power10                     23.5087        9.8574         58.07%
powerpc                     23.4776        9.06325        61.40%

reciprocal-throughput        master        patched   improvement
x86_64                      27.8224        15.9255        42.76%
x86_64v2                    27.8364        9.6438         65.36%
x86_64v3                    20.3227        9.6146         52.69%
i686                        63.5629        59.4718         6.44%
aarch64                     17.4838        7.1082         59.34%
power10                     12.4644        8.7829         29.54%
powerpc                     14.2152        5.94765        58.16%

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-01 11:27:35 -03:00
..
fclrexcpt.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fegetenv.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fegetmode.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fegetround.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
feholdexcpt.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fenv_private.h or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fesetenv.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fesetexcept.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fesetmode.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fesetround.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
feupdateenv.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fgetexcptflg.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fix-fp-int-convert-overflow.h or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fraiseexcpt.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
fsetexcptflg.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
ftestexcept.c or1k: Add hard float support 2024-05-03 18:28:18 +01:00
get-rounding-mode.h or1k: Add hard float support 2024-05-03 18:28:18 +01:00
libm-test-ulps math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
libm-test-ulps-name