summary refs log tree commit diff
path: root/sysdeps/alpha/fpu/e_sqrtf.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-06-05 03:33:51 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-06-22 11:09:49 -0300
commit8a7923b57e70ea500815d666e82156d291aa11fd (patch)
tree761ea6c99fd6949efe2aee089e02f43a5a84869c /sysdeps/alpha/fpu/e_sqrtf.c
parentb24381e50f0f8aee1e39bf86ebcbe962b70a9247 (diff)
downloadglibc-8a7923b57e70ea500815d666e82156d291aa11fd.tar.gz
glibc-8a7923b57e70ea500815d666e82156d291aa11fd.tar.xz
glibc-8a7923b57e70ea500815d666e82156d291aa11fd.zip
alpha: Use builtin sqrt{f}
The generic implementation is simplified by removing the
'optimization' for !_IEEE_FP_INEXACT (which does not handle
inexact neither some values).

Checked on alpha-linux-gnu.
Diffstat (limited to 'sysdeps/alpha/fpu/e_sqrtf.c')
-rw-r--r--sysdeps/alpha/fpu/e_sqrtf.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sysdeps/alpha/fpu/e_sqrtf.c b/sysdeps/alpha/fpu/e_sqrtf.c
index eb3f968576..38c41db537 100644
--- a/sysdeps/alpha/fpu/e_sqrtf.c
+++ b/sysdeps/alpha/fpu/e_sqrtf.c
@@ -1,13 +1,8 @@
 #include <shlib-compat.h>
 
-#define __ieee754_sqrtf __ieee754_sqrtf
 #include <sysdeps/ieee754/flt-32/e_sqrtf.c>
 
-/* Work around forgotten symbol in alphaev6 build.  */
-#if SHLIB_COMPAT (libm, GLIBC_2_15, GLIBC_2_18)
-strong_alias(__ieee754_sqrtf, __sqrtf_dummy)
-compat_symbol (libm, __sqrtf_dummy, __sqrtf_finite, GLIBC_2_15);
-#endif
 #if SHLIB_COMPAT (libm, GLIBC_2_18, GLIBC_2_31)
-compat_symbol (libm, __ieee754_sqrtf, __sqrtf_finite, GLIBC_2_18);
+strong_alias (__ieee754_sqrtf, __sqrtf_finite_2_18)
+compat_symbol (libm, __sqrtf_finite_2_18, __sqrtf_finite, GLIBC_2_18);
 #endif