diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-12-20 13:31:56 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-02-12 16:31:57 -0300 |
commit | de2fca9fe20e70d3c42b0a7a6baf684492dd4dbb (patch) | |
tree | 7d15e159b8180be2dbf9cf6ff2292aed290d3bb4 /sysdeps/s390 | |
parent | be85208b9fcaf7d7de7aec074e80177739b89947 (diff) | |
download | glibc-de2fca9fe20e70d3c42b0a7a6baf684492dd4dbb.zip glibc-de2fca9fe20e70d3c42b0a7a6baf684492dd4dbb.tar.gz glibc-de2fca9fe20e70d3c42b0a7a6baf684492dd4dbb.tar.bz2 |
math: Use sinpif from CORE-MATH
The CORE-MATH implementation is correctly rounded (for any rounding mode)
and shows better performance to the generic sinpif.
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 47.5710 38.4455 19.18%
x86_64v2 46.8828 40.7563 13.07%
x86_64v3 44.0034 34.1497 22.39%
aarch64 (Neoverse) 19.2493 14.1968 26.25%
power8 23.5312 16.3854 30.37%
power10 22.6485 10.2888 54.57%
reciprocal-throughput master patched improvement
x86_64 21.8858 11.6717 46.67%
x86_64v2 22.0620 11.9853 45.67%
x86_64v3 21.5653 11.3291 47.47%
aarch64 (Neoverse) 13.0615 6.5499 49.85%
power8 16.2030 6.9580 57.06%
power10 12.8911 4.2858 66.75%
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'sysdeps/s390')
-rw-r--r-- | sysdeps/s390/fpu/libm-test-ulps | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/s390/fpu/libm-test-ulps b/sysdeps/s390/fpu/libm-test-ulps index 6318760..2c89048 100644 --- a/sysdeps/s390/fpu/libm-test-ulps +++ b/sysdeps/s390/fpu/libm-test-ulps @@ -1387,22 +1387,18 @@ ldouble: 4 Function: "sinpi": double: 2 -float: 2 ldouble: 2 Function: "sinpi_downward": double: 2 -float: 2 ldouble: 2 Function: "sinpi_towardzero": double: 2 -float: 1 ldouble: 2 Function: "sinpi_upward": double: 2 -float: 3 ldouble: 2 Function: "tan": |