diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-10-08 10:55:12 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-10-30 15:41:24 -0300 |
| commit | 8facb464b4eacc1c7a22e1244c1be367a45827e2 (patch) | |
| tree | 7b2892cebf3d91c450c5e2c9fc5f883d0478f50d /math | |
| parent | f92aba68bc0b37526fa863a90ea6d3129f683c98 (diff) | |
math: Remove the SVID error handling from acoshf
It improves latency for about 3-7% and throughput for about 5-10%.
Tested on x86_64-linux-gnu and i686-linux-gnu.
Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
Diffstat (limited to 'math')
| -rw-r--r-- | math/Versions | 1 | ||||
| -rw-r--r-- | math/w_acoshf_compat.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/math/Versions b/math/Versions index 31818c273e..91cd7ea08d 100644 --- a/math/Versions +++ b/math/Versions @@ -689,6 +689,7 @@ libm { GLIBC_2.43 { # No SVID compatible error handling. acosf; + acoshf; asinf; log10f; } diff --git a/math/w_acoshf_compat.c b/math/w_acoshf_compat.c index aa5da5c436..104ce08aaf 100644 --- a/math/w_acoshf_compat.c +++ b/math/w_acoshf_compat.c @@ -21,10 +21,10 @@ #include <libm-alias-float.h> -#if LIBM_SVID_COMPAT +#if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_43) /* wrapper acoshf */ float -__acoshf (float x) +__acosh_compatf (float x) { if (__builtin_expect (isless (x, 1.0f), 0) && _LIB_VERSION != _IEEE_) /* acosh(x<1) */ @@ -32,5 +32,5 @@ __acoshf (float x) return __ieee754_acoshf (x); } -libm_alias_float (__acosh, acosh) +compat_symbol (libm, __acosh_compatf, acoshf, GLIBC_2_0); #endif |
