diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-11-17 22:54:39 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-11-17 22:54:39 +0000 |
commit | 2ce30701e6df07deda6fb205808769d237aa2460 (patch) | |
tree | acaa4e8062e17e22f0ce1d84b3624a40357e43c2 /sysdeps/i386 | |
parent | 015c6dc288003cd6b192f5901a8df2ea16205ee4 (diff) | |
download | glibc-2ce30701e6df07deda6fb205808769d237aa2460.tar.gz glibc-2ce30701e6df07deda6fb205808769d237aa2460.tar.xz glibc-2ce30701e6df07deda6fb205808769d237aa2460.zip |
Use libm_alias_ldouble in sysdeps/i386/fpu.
This patch continues the preparation for additional _FloatN / _FloatNx function aliases by using libm_alias_ldouble for sysdeps/i386/fpu long double functions, so that they can have _Float64x aliases added in future. Tested for x86_64 (which includes some of these implementations) and x86, including build-many-glibcs.py tests that installed stripped shared libraries are unchanged by the patch. * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>. [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>. (asinhl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>. (atanl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>. (cbrtl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>. (ceill): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>. (copysignl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>. (fabsl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>. (floorl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>. (fmaxl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>. (fminl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>. (frexpl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>. (llrintl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>. (logbl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>. (lrintl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>. (nearbyintl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>. (nextafterl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>. (remquol): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>. (rintl): Define using libm_alias_ldouble. * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>. (truncl): Define using libm_alias_ldouble. * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>. (fmaxl): Define using libm_alias_ldouble. * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>. (fminl): Define using libm_alias_ldouble.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r-- | sysdeps/i386/fpu/e_expl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_asinhl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_atanl.c | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_cbrtl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_ceill.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_copysignl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_fabsl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_floorl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_fmaxl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_fminl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_frexpl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_llrintl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_logbl.c | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_lrintl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_nearbyintl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_nextafterl.c | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_remquol.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_rintl.c | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/s_truncl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/i686/fpu/s_fmaxl.S | 3 | ||||
-rw-r--r-- | sysdeps/i386/i686/fpu/s_fminl.S | 3 |
21 files changed, 42 insertions, 21 deletions
diff --git a/sysdeps/i386/fpu/e_expl.S b/sysdeps/i386/fpu/e_expl.S index 7d75fe22a1..18a627e9da 100644 --- a/sysdeps/i386/fpu/e_expl.S +++ b/sysdeps/i386/fpu/e_expl.S @@ -22,6 +22,7 @@ * -- moshier@na-net.ornl.gov */ +#include <libm-alias-ldouble.h> #include <machine/asm.h> #include <i386-math-asm.h> @@ -220,7 +221,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/i386/fpu/s_asinhl.S b/sysdeps/i386/fpu/s_asinhl.S index f31a267e78..e1d6ef72be 100644 --- a/sysdeps/i386/fpu/s_asinhl.S +++ b/sysdeps/i386/fpu/s_asinhl.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> .section .rodata @@ -141,4 +142,4 @@ ENTRY(__asinhl) fchs 4: ret END(__asinhl) -weak_alias (__asinhl, asinhl) +libm_alias_ldouble (__asinh, asinh) diff --git a/sysdeps/i386/fpu/s_atanl.c b/sysdeps/i386/fpu/s_atanl.c index b7dba88aad..2b02ac1e32 100644 --- a/sysdeps/i386/fpu/s_atanl.c +++ b/sysdeps/i386/fpu/s_atanl.c @@ -6,6 +6,7 @@ */ #include <math_private.h> +#include <libm-alias-ldouble.h> long double __atanl (long double x) @@ -19,4 +20,4 @@ __atanl (long double x) return res; } -weak_alias (__atanl, atanl) +libm_alias_ldouble (__atan, atan) diff --git a/sysdeps/i386/fpu/s_cbrtl.S b/sysdeps/i386/fpu/s_cbrtl.S index e4a72d29c6..b5f4867b98 100644 --- a/sysdeps/i386/fpu/s_cbrtl.S +++ b/sysdeps/i386/fpu/s_cbrtl.S @@ -18,6 +18,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> .section .rodata @@ -226,4 +227,4 @@ ENTRY(__cbrtl) fadd %st ret END(__cbrtl) -weak_alias (__cbrtl, cbrtl) +libm_alias_ldouble (__cbrt, cbrt) diff --git a/sysdeps/i386/fpu/s_ceill.S b/sysdeps/i386/fpu/s_ceill.S index 7c08f43b24..70d5c6ce0c 100644 --- a/sysdeps/i386/fpu/s_ceill.S +++ b/sysdeps/i386/fpu/s_ceill.S @@ -4,6 +4,7 @@ * Public domain. */ +#include <libm-alias-ldouble.h> #include <machine/asm.h> RCSID("$NetBSD: $") @@ -37,4 +38,4 @@ ENTRY(__ceill) cfi_adjust_cfa_offset (-32) ret END (__ceill) -weak_alias (__ceill, ceill) +libm_alias_ldouble (__ceil, ceil) diff --git a/sysdeps/i386/fpu/s_copysignl.S b/sysdeps/i386/fpu/s_copysignl.S index 2163e7b014..671ce683ba 100644 --- a/sysdeps/i386/fpu/s_copysignl.S +++ b/sysdeps/i386/fpu/s_copysignl.S @@ -4,6 +4,7 @@ * Public domain. */ +#include <libm-alias-ldouble.h> #include <machine/asm.h> RCSID("$NetBSD: $") @@ -18,4 +19,4 @@ ENTRY(__copysignl) fldt 4(%esp) ret END (__copysignl) -weak_alias (__copysignl, copysignl) +libm_alias_ldouble (__copysign, copysign) diff --git a/sysdeps/i386/fpu/s_fabsl.S b/sysdeps/i386/fpu/s_fabsl.S index a12a3e050b..6642ed4151 100644 --- a/sysdeps/i386/fpu/s_fabsl.S +++ b/sysdeps/i386/fpu/s_fabsl.S @@ -1,3 +1,4 @@ +#include <libm-alias-ldouble.h> #include <sysdep.h> .text @@ -6,4 +7,4 @@ ENTRY(__fabsl) fabs ret END(__fabsl) -weak_alias (__fabsl, fabsl) +libm_alias_ldouble (__fabs, fabs) diff --git a/sysdeps/i386/fpu/s_floorl.S b/sysdeps/i386/fpu/s_floorl.S index dc74a0c446..f85b542f9b 100644 --- a/sysdeps/i386/fpu/s_floorl.S +++ b/sysdeps/i386/fpu/s_floorl.S @@ -4,6 +4,7 @@ * Public domain. */ +#include <libm-alias-ldouble.h> #include <machine/asm.h> RCSID("$NetBSD: $") @@ -37,4 +38,4 @@ ENTRY(__floorl) cfi_adjust_cfa_offset (-32) ret END (__floorl) -weak_alias (__floorl, floorl) +libm_alias_ldouble (__floor, floor) diff --git a/sysdeps/i386/fpu/s_fmaxl.S b/sysdeps/i386/fpu/s_fmaxl.S index 68162921db..51264c4edc 100644 --- a/sysdeps/i386/fpu/s_fmaxl.S +++ b/sysdeps/i386/fpu/s_fmaxl.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 <sysdep.h> .text @@ -68,4 +69,4 @@ ENTRY(__fmaxl) faddp ret END(__fmaxl) -weak_alias (__fmaxl, fmaxl) +libm_alias_ldouble (__fmax, fmax) diff --git a/sysdeps/i386/fpu/s_fminl.S b/sysdeps/i386/fpu/s_fminl.S index 12ef21fda9..d496521d45 100644 --- a/sysdeps/i386/fpu/s_fminl.S +++ b/sysdeps/i386/fpu/s_fminl.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 <sysdep.h> .text @@ -68,4 +69,4 @@ ENTRY(__fminl) faddp ret END(__fminl) -weak_alias (__fminl, fminl) +libm_alias_ldouble (__fmin, fmin) diff --git a/sysdeps/i386/fpu/s_frexpl.S b/sysdeps/i386/fpu/s_frexpl.S index 04f28888d2..5d71c90a7d 100644 --- a/sysdeps/i386/fpu/s_frexpl.S +++ b/sysdeps/i386/fpu/s_frexpl.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> .section .rodata @@ -89,4 +90,4 @@ ENTRY (__frexpl) movl %ecx, (%eax) ret END (__frexpl) -weak_alias (__frexpl, frexpl) +libm_alias_ldouble (__frexp, frexp) diff --git a/sysdeps/i386/fpu/s_llrintl.S b/sysdeps/i386/fpu/s_llrintl.S index 7b48c02ef4..87c11b1426 100644 --- a/sysdeps/i386/fpu/s_llrintl.S +++ b/sysdeps/i386/fpu/s_llrintl.S @@ -18,6 +18,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#include <libm-alias-ldouble.h> #include <sysdep.h> .text @@ -33,4 +34,4 @@ ENTRY(__llrintl) cfi_adjust_cfa_offset (-4) ret END(__llrintl) -weak_alias (__llrintl, llrintl) +libm_alias_ldouble (__llrint, llrint) diff --git a/sysdeps/i386/fpu/s_logbl.c b/sysdeps/i386/fpu/s_logbl.c index 391e2db489..601d873594 100644 --- a/sysdeps/i386/fpu/s_logbl.c +++ b/sysdeps/i386/fpu/s_logbl.c @@ -4,6 +4,7 @@ * Public domain. */ +#include <libm-alias-ldouble.h> #include <math_private.h> long double @@ -16,4 +17,4 @@ __logbl (long double x) return res; } -weak_alias (__logbl, logbl) +libm_alias_ldouble (__logb, logb) diff --git a/sysdeps/i386/fpu/s_lrintl.S b/sysdeps/i386/fpu/s_lrintl.S index ba6dbdf44c..b55f50c376 100644 --- a/sysdeps/i386/fpu/s_lrintl.S +++ b/sysdeps/i386/fpu/s_lrintl.S @@ -18,6 +18,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#include <libm-alias-ldouble.h> #include <sysdep.h> .text @@ -31,4 +32,4 @@ ENTRY(__lrintl) cfi_adjust_cfa_offset (-4) ret END(__lrintl) -weak_alias (__lrintl, lrintl) +libm_alias_ldouble (__lrint, lrint) diff --git a/sysdeps/i386/fpu/s_nearbyintl.S b/sysdeps/i386/fpu/s_nearbyintl.S index 3b7d1e2436..852e1f6524 100644 --- a/sysdeps/i386/fpu/s_nearbyintl.S +++ b/sysdeps/i386/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) @@ -20,4 +21,4 @@ ENTRY(__nearbyintl) cfi_adjust_cfa_offset (-32) ret END (__nearbyintl) -weak_alias (__nearbyintl, nearbyintl) +libm_alias_ldouble (__nearbyint, nearbyint) diff --git a/sysdeps/i386/fpu/s_nextafterl.c b/sysdeps/i386/fpu/s_nextafterl.c index 92f53abae3..0ad2ea0366 100644 --- a/sysdeps/i386/fpu/s_nextafterl.c +++ b/sysdeps/i386/fpu/s_nextafterl.c @@ -29,6 +29,7 @@ static char rcsid[] = "$NetBSD: $"; #include <errno.h> #include <math.h> #include <math_private.h> +#include <libm-alias-ldouble.h> long double __nextafterl(long double x, long double y) { @@ -120,6 +121,6 @@ long double __nextafterl(long double x, long double y) SET_LDOUBLE_WORDS(x,esx,hx,lx); return x; } -weak_alias (__nextafterl, nextafterl) +libm_alias_ldouble (__nextafter, nextafter) strong_alias (__nextafterl, __nexttowardl) weak_alias (__nextafterl, nexttowardl) diff --git a/sysdeps/i386/fpu/s_remquol.S b/sysdeps/i386/fpu/s_remquol.S index f3d84fc7c2..f02cc10465 100644 --- a/sysdeps/i386/fpu/s_remquol.S +++ b/sysdeps/i386/fpu/s_remquol.S @@ -4,6 +4,7 @@ * Public domain. */ +#include <libm-alias-ldouble.h> #include <machine/asm.h> #define PARMS 4 /* no space for saved regs */ @@ -42,4 +43,4 @@ ENTRY (__remquol) ret END (__remquol) -weak_alias (__remquol, remquol) +libm_alias_ldouble (__remquo, remquo) diff --git a/sysdeps/i386/fpu/s_rintl.c b/sysdeps/i386/fpu/s_rintl.c index 66af9cb675..5900435af9 100644 --- a/sysdeps/i386/fpu/s_rintl.c +++ b/sysdeps/i386/fpu/s_rintl.c @@ -4,6 +4,7 @@ * Public domain. */ +#include <libm-alias-ldouble.h> #include <math_private.h> long double @@ -15,4 +16,4 @@ __rintl (long double x) return res; } -weak_alias (__rintl, rintl) +libm_alias_ldouble (__rint, rint) diff --git a/sysdeps/i386/fpu/s_truncl.S b/sysdeps/i386/fpu/s_truncl.S index a884123612..62083f97f1 100644 --- a/sysdeps/i386/fpu/s_truncl.S +++ b/sysdeps/i386/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) @@ -37,4 +38,4 @@ ENTRY(__truncl) cfi_adjust_cfa_offset (-32) ret END(__truncl) -weak_alias (__truncl, truncl) +libm_alias_ldouble (__trunc, trunc) diff --git a/sysdeps/i386/i686/fpu/s_fmaxl.S b/sysdeps/i386/i686/fpu/s_fmaxl.S index 3f6c21c63d..a669eed7ff 100644 --- a/sysdeps/i386/i686/fpu/s_fmaxl.S +++ b/sysdeps/i386/i686/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/i386/i686/fpu/s_fminl.S b/sysdeps/i386/i686/fpu/s_fminl.S index e1cb83fed7..5fdda368fc 100644 --- a/sysdeps/i386/i686/fpu/s_fminl.S +++ b/sysdeps/i386/i686/fpu/s_fminl.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 <sysdep.h> .text @@ -55,4 +56,4 @@ ENTRY(__fminl) faddp ret END(__fminl) -weak_alias (__fminl, fminl) +libm_alias_ldouble (__fmin, fmin) |