From f58e5f48096332566aa479ed0961c1f67aa3ed66 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 17 Nov 2017 23:39:11 +0000 Subject: Use libm_alias_ldouble in sysdeps/x86_64/fpu. This patch continues the preparation for additional _FloatN / _FloatNx function aliases by using libm_alias_ldouble for sysdeps/x86_64/fpu long double functions, so that they can have _Float64x aliases added in future. Tested for x86_64, including build-many-glibcs.py tests that installed stripped shared libraries are unchanged by the patch. * sysdeps/x86_64/fpu/e_expl.S: Include . [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble. * sysdeps/x86_64/fpu/s_ceill.S: Include . (ceill): Define using libm_alias_ldouble. * sysdeps/x86_64/fpu/s_copysignl.S: Include . (copysignl): Define using libm_alias_ldouble. * sysdeps/x86_64/fpu/s_fabsl.S: Include . (fabsl): Define using libm_alias_ldouble. * sysdeps/x86_64/fpu/s_floorl.S: Include . (floorl): Define using libm_alias_ldouble. * sysdeps/x86_64/fpu/s_fmaxl.S: Include . (fmaxl): Define using libm_alias_ldouble. * sysdeps/x86_64/fpu/s_fminl.S: Include . (fminl): Define using libm_alias_ldouble. * sysdeps/x86_64/fpu/s_llrintl.S: Include . (llrintl): Define using libm_alias_ldouble. (lrintl): Likewise. * sysdeps/x86_64/fpu/s_nearbyintl.S: Include . (nearbyintl): Define using libm_alias_ldouble. * sysdeps/x86_64/fpu/s_truncl.S: Include . (truncl): Define using libm_alias_ldouble. * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include . (lrintl): Define using libm_alias_ldouble. --- sysdeps/x86_64/fpu/e_expl.S | 3 ++- sysdeps/x86_64/fpu/s_ceill.S | 3 ++- sysdeps/x86_64/fpu/s_copysignl.S | 3 ++- sysdeps/x86_64/fpu/s_fabsl.S | 3 ++- sysdeps/x86_64/fpu/s_floorl.S | 3 ++- sysdeps/x86_64/fpu/s_fmaxl.S | 3 ++- sysdeps/x86_64/fpu/s_fminl.S | 3 ++- sysdeps/x86_64/fpu/s_llrintl.S | 5 +++-- sysdeps/x86_64/fpu/s_nearbyintl.S | 3 ++- sysdeps/x86_64/fpu/s_truncl.S | 3 ++- sysdeps/x86_64/x32/fpu/s_lrintl.S | 3 ++- 11 files changed, 23 insertions(+), 12 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/x86_64/fpu/e_expl.S b/sysdeps/x86_64/fpu/e_expl.S index a4ef023..b75a103 100644 --- a/sysdeps/x86_64/fpu/e_expl.S +++ b/sysdeps/x86_64/fpu/e_expl.S @@ -22,6 +22,7 @@ * -- moshier@na-net.ornl.gov */ +#include #include #include @@ -213,7 +214,7 @@ ENTRY(IEEE754_EXPL) END(IEEE754_EXPL) #ifdef USE_AS_EXPM1L libm_hidden_def (__expm1l) -weak_alias (__expm1l, expm1l) +libm_alias_ldouble (__expm1, expm1) #else strong_alias (IEEE754_EXPL, EXPL_FINITE) #endif diff --git a/sysdeps/x86_64/fpu/s_ceill.S b/sysdeps/x86_64/fpu/s_ceill.S index 9d8b79d..8f2bd35 100644 --- a/sysdeps/x86_64/fpu/s_ceill.S +++ b/sysdeps/x86_64/fpu/s_ceill.S @@ -5,6 +5,7 @@ * Public domain. */ +#include #include @@ -33,4 +34,4 @@ ENTRY(__ceill) ret END (__ceill) -weak_alias (__ceill, ceill) +libm_alias_ldouble (__ceil, ceil) diff --git a/sysdeps/x86_64/fpu/s_copysignl.S b/sysdeps/x86_64/fpu/s_copysignl.S index 2ffd612..8616205 100644 --- a/sysdeps/x86_64/fpu/s_copysignl.S +++ b/sysdeps/x86_64/fpu/s_copysignl.S @@ -5,6 +5,7 @@ * Public domain. */ +#include #include RCSID("$NetBSD: $") @@ -19,4 +20,4 @@ ENTRY(__copysignl) fldt 8(%rsp) ret END (__copysignl) -weak_alias (__copysignl, copysignl) +libm_alias_ldouble (__copysign, copysign) diff --git a/sysdeps/x86_64/fpu/s_fabsl.S b/sysdeps/x86_64/fpu/s_fabsl.S index 1aef831..76178b0 100644 --- a/sysdeps/x86_64/fpu/s_fabsl.S +++ b/sysdeps/x86_64/fpu/s_fabsl.S @@ -17,6 +17,7 @@ . */ #include +#include .text ENTRY(__fabsl) @@ -24,4 +25,4 @@ ENTRY(__fabsl) fabs ret END(__fabsl) -weak_alias (__fabsl, fabsl) +libm_alias_ldouble (__fabs, fabs) diff --git a/sysdeps/x86_64/fpu/s_floorl.S b/sysdeps/x86_64/fpu/s_floorl.S index 535fdd8..75f8255 100644 --- a/sysdeps/x86_64/fpu/s_floorl.S +++ b/sysdeps/x86_64/fpu/s_floorl.S @@ -5,6 +5,7 @@ * Public domain. */ +#include #include ENTRY(__floorl) @@ -32,4 +33,4 @@ ENTRY(__floorl) ret END (__floorl) -weak_alias (__floorl, floorl) +libm_alias_ldouble (__floor, floor) diff --git a/sysdeps/x86_64/fpu/s_fmaxl.S b/sysdeps/x86_64/fpu/s_fmaxl.S index 2d3321f..579f2a2 100644 --- a/sysdeps/x86_64/fpu/s_fmaxl.S +++ b/sysdeps/x86_64/fpu/s_fmaxl.S @@ -18,6 +18,7 @@ . */ #include +#include .text ENTRY(__fmaxl) @@ -55,4 +56,4 @@ ENTRY(__fmaxl) faddp ret END(__fmaxl) -weak_alias (__fmaxl, fmaxl) +libm_alias_ldouble (__fmax, fmax) diff --git a/sysdeps/x86_64/fpu/s_fminl.S b/sysdeps/x86_64/fpu/s_fminl.S index 33eed7b..7fb1e05 100644 --- a/sysdeps/x86_64/fpu/s_fminl.S +++ b/sysdeps/x86_64/fpu/s_fminl.S @@ -18,6 +18,7 @@ . */ #include +#include .text ENTRY(__fminl) @@ -55,4 +56,4 @@ ENTRY(__fminl) faddp ret END(__fminl) -weak_alias (__fminl, fminl) +libm_alias_ldouble (__fmin, fmin) diff --git a/sysdeps/x86_64/fpu/s_llrintl.S b/sysdeps/x86_64/fpu/s_llrintl.S index e5bbf01..08d43e7 100644 --- a/sysdeps/x86_64/fpu/s_llrintl.S +++ b/sysdeps/x86_64/fpu/s_llrintl.S @@ -18,6 +18,7 @@ . */ #include +#include .text ENTRY(__llrintl) @@ -27,8 +28,8 @@ ENTRY(__llrintl) movq -8(%rsp),%rax ret END(__llrintl) -weak_alias (__llrintl, llrintl) +libm_alias_ldouble (__llrint, llrint) #ifndef __ILP32__ strong_alias (__llrintl, __lrintl) -weak_alias (__llrintl, lrintl) +libm_alias_ldouble (__llrint, lrint) #endif diff --git a/sysdeps/x86_64/fpu/s_nearbyintl.S b/sysdeps/x86_64/fpu/s_nearbyintl.S index 31b21a5..80508bd 100644 --- a/sysdeps/x86_64/fpu/s_nearbyintl.S +++ b/sysdeps/x86_64/fpu/s_nearbyintl.S @@ -4,6 +4,7 @@ */ /* Adapted for use as nearbyint by Ulrich Drepper . */ +#include #include ENTRY(__nearbyintl) @@ -16,4 +17,4 @@ ENTRY(__nearbyintl) fldenv -28(%rsp) ret END (__nearbyintl) -weak_alias (__nearbyintl, nearbyintl) +libm_alias_ldouble (__nearbyint, nearbyint) diff --git a/sysdeps/x86_64/fpu/s_truncl.S b/sysdeps/x86_64/fpu/s_truncl.S index b6ca0ba..5cab253 100644 --- a/sysdeps/x86_64/fpu/s_truncl.S +++ b/sysdeps/x86_64/fpu/s_truncl.S @@ -17,6 +17,7 @@ License along with the GNU C Library; if not, see . */ +#include #include ENTRY(__truncl) @@ -33,4 +34,4 @@ ENTRY(__truncl) fldenv -28(%rsp) ret END(__truncl) -weak_alias (__truncl, truncl) +libm_alias_ldouble (__trunc, trunc) diff --git a/sysdeps/x86_64/x32/fpu/s_lrintl.S b/sysdeps/x86_64/x32/fpu/s_lrintl.S index 623c6fc..071968d 100644 --- a/sysdeps/x86_64/x32/fpu/s_lrintl.S +++ b/sysdeps/x86_64/x32/fpu/s_lrintl.S @@ -18,6 +18,7 @@ . */ #include +#include .text ENTRY(__lrintl) @@ -27,4 +28,4 @@ ENTRY(__lrintl) movl -4(%rsp),%eax ret END(__lrintl) -weak_alias (__lrintl, lrintl) +libm_alias_ldouble (__lrint, lrint) -- cgit v1.1