diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-11-17 23:39:11 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-11-17 23:39:11 +0000 |
commit | f58e5f48096332566aa479ed0961c1f67aa3ed66 (patch) | |
tree | 58b2d8766c84f7e72cca941004709066fa135a57 /sysdeps | |
parent | 2ce30701e6df07deda6fb205808769d237aa2460 (diff) | |
download | glibc-f58e5f48096332566aa479ed0961c1f67aa3ed66.zip glibc-f58e5f48096332566aa479ed0961c1f67aa3ed66.tar.gz glibc-f58e5f48096332566aa479ed0961c1f67aa3ed66.tar.bz2 |
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 <libm-alias-ldouble.h>.
[USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
(ceill): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_copysignl.S: Include
<libm-alias-ldouble.h>.
(copysignl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
(fabsl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
(floorl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
(fmaxl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
(fminl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
(llrintl): Define using libm_alias_ldouble.
(lrintl): Likewise.
* sysdeps/x86_64/fpu/s_nearbyintl.S: Include
<libm-alias-ldouble.h>.
(nearbyintl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
(truncl): Define using libm_alias_ldouble.
* sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
<libm-alias-ldouble.h>.
(lrintl): Define using libm_alias_ldouble.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/x86_64/fpu/e_expl.S | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/s_ceill.S | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/s_copysignl.S | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/s_fabsl.S | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/s_floorl.S | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/s_fmaxl.S | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/s_fminl.S | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/s_llrintl.S | 5 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/s_nearbyintl.S | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/s_truncl.S | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/x32/fpu/s_lrintl.S | 3 |
11 files changed, 23 insertions, 12 deletions
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 <libm-alias-ldouble.h> #include <machine/asm.h> #include <x86_64-math-asm.h> @@ -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 <libm-alias-ldouble.h> #include <machine/asm.h> @@ -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 <libm-alias-ldouble.h> #include <machine/asm.h> 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 @@ <http://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <libm-alias-ldouble.h> .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 <libm-alias-ldouble.h> #include <machine/asm.h> 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 @@ <http://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <libm-alias-ldouble.h> .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 @@ <http://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <libm-alias-ldouble.h> .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 @@ <http://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <libm-alias-ldouble.h> .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 <drepper@cygnus.com>. */ +#include <libm-alias-ldouble.h> #include <machine/asm.h> 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 <http://www.gnu.org/licenses/>. */ +#include <libm-alias-ldouble.h> #include <machine/asm.h> 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 @@ <http://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <libm-alias-ldouble.h> .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) |