aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sparc/sparc64
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-10-13 16:43:18 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-10-13 16:43:18 +0000
commit006e766437033d6565133ce356b55d7b301a7b58 (patch)
tree400428a12d8d3c641c5fe63b6d2247517cf8c612 /sysdeps/sparc/sparc64
parent1def91b304faaaf18ab1162bf02bd43c13b5a74d (diff)
downloadglibc-006e766437033d6565133ce356b55d7b301a7b58.zip
glibc-006e766437033d6565133ce356b55d7b301a7b58.tar.gz
glibc-006e766437033d6565133ce356b55d7b301a7b58.tar.bz2
Use libm_alias_ldouble for SPARC fabsl.
This patch makes SPARC fabsl implementation use libm_alias_ldouble, to prepare them for also defining _Float128 function aliases. Tested with build-many-glibcs.py that installed stripped shared libraries (sparc64-linux-gnu and sparcv9-linux-gnu) are unchanged by the patch. * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include <libm-alias-ldouble.h>. (fabsl): Define using libm_alias_ldouble. * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include <libm-alias-ldouble.h>. (fabsl): Define using libm_alias_ldouble.
Diffstat (limited to 'sysdeps/sparc/sparc64')
-rw-r--r--sysdeps/sparc/sparc64/fpu/s_fabsl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/sparc/sparc64/fpu/s_fabsl.c b/sysdeps/sparc/sparc64/fpu/s_fabsl.c
index 67e9f47..72e1c51 100644
--- a/sysdeps/sparc/sparc64/fpu/s_fabsl.c
+++ b/sysdeps/sparc/sparc64/fpu/s_fabsl.c
@@ -1,5 +1,7 @@
+#include <libm-alias-ldouble.h>
+
long double __fabsl (long double x)
{
return __builtin_fabsl (x);
}
-weak_alias (__fabsl, fabsl)
+libm_alias_ldouble (__fabs, fabs)