summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-10-08 10:55:21 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-10-30 15:41:35 -0300
commitee946212fe3b45f5194a8bbffc1e855855874ff0 (patch)
treec8d34c4c4502030201ebbc143e450a488014b5d1 /math
parent8d4815e6d702691f6f1a0a475d69bb53995c7375 (diff)
math: Remove the SVID error handling wrapper from yn/jn
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/Versions2
-rw-r--r--math/w_jnf_compat.c10
2 files changed, 7 insertions, 5 deletions
diff --git a/math/Versions b/math/Versions
index fdd0c56328..d746623873 100644
--- a/math/Versions
+++ b/math/Versions
@@ -695,8 +695,10 @@ libm {
coshf;
j0f;
j1f;
+ jnf;
log10f;
y0f;
y1f;
+ ynf;
}
}
diff --git a/math/w_jnf_compat.c b/math/w_jnf_compat.c
index 4732d96bd5..685d8128e7 100644
--- a/math/w_jnf_compat.c
+++ b/math/w_jnf_compat.c
@@ -22,10 +22,10 @@
#include <libm-alias-float.h>
-#if LIBM_SVID_COMPAT
+#if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_43)
/* wrapper jnf */
float
-__jnf (int n, float x)
+__jnf_svid (int n, float x)
{
if (__builtin_expect (isgreater (fabsf (x),
AS_FLOAT_CONSTANT (X_TLOSS)), 0)
@@ -35,12 +35,12 @@ __jnf (int n, float x)
return __ieee754_jnf (n, x);
}
-libm_alias_float (__jn, jn)
+compat_symbol (libm, __jnf_svid, jnf, GLIBC_2_0);
/* wrapper ynf */
float
-__ynf (int n, float x)
+__ynf_svid (int n, float x)
{
if (__builtin_expect (islessequal (x, 0.0f)
|| isgreater (x, AS_FLOAT_CONSTANT (X_TLOSS)), 0)
@@ -65,5 +65,5 @@ __ynf (int n, float x)
return __ieee754_ynf (n, x);
}
-libm_alias_float (__yn, yn)
+compat_symbol (libm, __ynf_svid, ynf, GLIBC_2_0);
#endif