aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/csky
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-10-28 17:58:18 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-11-22 10:52:27 -0300
commit994fec2397770e0655d240f7c9f9e5c29dbb0926 (patch)
treea4549b0e5aa225f10ff35754bc5025360857320e /sysdeps/csky
parentc4c64ba5d10fecc3bb3749d72c69ce21fe0d0aaa (diff)
downloadglibc-994fec2397770e0655d240f7c9f9e5c29dbb0926.zip
glibc-994fec2397770e0655d240f7c9f9e5c29dbb0926.tar.gz
glibc-994fec2397770e0655d240f7c9f9e5c29dbb0926.tar.bz2
math: Use erff from CORE-MATH
The CORE-MATH implementation is correctly rounded (for any rounding mode) and shows better performance to the generic erff. The code was adapted to glibc style and to use the definition of math_config.h. Benchtest on x64_64 (Ryzen 9 5900X, gcc 14.2.1), aarch64 (M1, gcc 13.2.1), and powerpc (POWER10, gcc 13.2.1): latency master patched improvement x86_64 85.7363 45.1372 47.35% x86_64v2 86.6337 38.5816 55.47% x86_64v3 71.3810 34.0843 52.25% i686 190.143 97.5014 48.72% aarch64 34.9091 14.9320 57.23% power10 38.6160 8.5188 77.94% powerpc 39.7446 8.45781 78.72% reciprocal-throughput master patched improvement x86_64 35.1739 14.7603 58.04% x86_64v2 34.5976 11.2283 67.55% x86_64v3 27.3260 9.8550 63.94% i686 91.0282 30.8840 66.07% aarch64 22.5831 6.9615 69.17% power10 18.0386 3.0918 82.86% powerpc 20.7277 3.63396 82.47% 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>
Diffstat (limited to 'sysdeps/csky')
-rw-r--r--sysdeps/csky/fpu/libm-test-ulps4
-rw-r--r--sysdeps/csky/nofpu/libm-test-ulps4
2 files changed, 0 insertions, 8 deletions
diff --git a/sysdeps/csky/fpu/libm-test-ulps b/sysdeps/csky/fpu/libm-test-ulps
index c3a3db9..d276db2 100644
--- a/sysdeps/csky/fpu/libm-test-ulps
+++ b/sysdeps/csky/fpu/libm-test-ulps
@@ -719,19 +719,15 @@ float: 3
Function: "erf":
double: 1
-float: 1
Function: "erf_downward":
double: 1
-float: 1
Function: "erf_towardzero":
double: 1
-float: 1
Function: "erf_upward":
double: 1
-float: 1
Function: "erfc":
double: 5
diff --git a/sysdeps/csky/nofpu/libm-test-ulps b/sysdeps/csky/nofpu/libm-test-ulps
index 68a74bf..ea08fd5 100644
--- a/sysdeps/csky/nofpu/libm-test-ulps
+++ b/sysdeps/csky/nofpu/libm-test-ulps
@@ -717,19 +717,15 @@ float: 3
Function: "erf":
double: 1
-float: 1
Function: "erf_downward":
double: 1
-float: 1
Function: "erf_towardzero":
double: 1
-float: 1
Function: "erf_upward":
double: 1
-float: 1
Function: "erfc":
double: 5