From fd3b4e7c8a0b492fe39243893803f4d9f84e30af Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 6 Oct 2017 17:45:05 +0000 Subject: Use libm_alias_ldouble for ldbl-128 functions. This patch makes ldbl-128 functions use libm_alias_ldouble to define function aliases. float128_private.h is updated accordingly. Most of the ldbl-64-128 wrappers are removed as no longer needed with this change (leaving those that involve versioning for functions in libc or that shouldn't be exported from libm for _Float128 / _Float64x types with the same format as long double). Tested for x86_64, and tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by this patch. * sysdeps/ieee754/float128/float128_private.h: Include and . (libm_alias_ldouble_r): Undefine and redefine. * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include . (asinhl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_atanl.c: Include . (atanl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include . (cbrtl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_ceill.c: Include . (ceill): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include . (copysignl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_cosl.c: Include . (cosl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_erfl.c: Include . (erfl): Define using libm_alias_ldouble. (erfcl): Likewise. * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include . (expm1l): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include . (fabsl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_floorl.c: Include . (floorl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_fmal.c: Include . (fmal): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include . (frexpl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include . * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include . (getpayloadl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include . (llrintl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include . (llroundl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_logbl.c: Include . (logbl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include . (lrintl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include . (lroundl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_modfl.c: Include . (modfl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include . (nearbyintl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include . (nextafterl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include . (nextupl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_remquol.c: Include . (remquol): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_rintl.c: Include . (rintl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include . (roundevenl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_roundl.c: Include . (roundl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include . * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include . (sincosl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_sinl.c: Include . (sinl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include . (tanhl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_tanl.c: Include . (tanl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include . (totalorderl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include . (totalordermagl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_truncl.c: Include . (truncl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using libm_alias_ldouble. * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include . (weak_alias): Do not undefine and redefine. [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine. (copysignl): Define with long_double_symbol only if [IS_IN (libc)]. * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include . (weak_alias): Do not undefine and redefine. [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine. (frexpl): Define with long_double_symbol only if [IS_IN (libc)]. * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include . (weak_alias): Do not undefine and redefine. [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine. (modfl): Define with long_double_symbol only if [IS_IN (libc)]. * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file. * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise. --- sysdeps/ieee754/ldbl-128/s_asinhl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_atanl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_cbrtl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_ceill.c | 3 ++- sysdeps/ieee754/ldbl-128/s_copysignl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_cosl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_erfl.c | 5 +++-- sysdeps/ieee754/ldbl-128/s_expm1l.c | 3 ++- sysdeps/ieee754/ldbl-128/s_fabsl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_floorl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_fmal.c | 3 ++- sysdeps/ieee754/ldbl-128/s_frexpl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_fromfpl.c | 2 +- sysdeps/ieee754/ldbl-128/s_fromfpl_main.c | 1 + sysdeps/ieee754/ldbl-128/s_fromfpxl.c | 2 +- sysdeps/ieee754/ldbl-128/s_getpayloadl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_llrintl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_llroundl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_logbl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_lrintl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_lroundl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_modfl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_nearbyintl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_nextafterl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_nextupl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_remquol.c | 3 ++- sysdeps/ieee754/ldbl-128/s_rintl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_roundevenl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_roundl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_setpayloadl.c | 2 +- sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c | 1 + sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c | 2 +- sysdeps/ieee754/ldbl-128/s_sincosl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_sinl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_tanhl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_tanl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_totalorderl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_totalordermagl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_truncl.c | 3 ++- sysdeps/ieee754/ldbl-128/s_ufromfpl.c | 2 +- sysdeps/ieee754/ldbl-128/s_ufromfpxl.c | 2 +- 41 files changed, 75 insertions(+), 40 deletions(-) (limited to 'sysdeps/ieee754/ldbl-128') diff --git a/sysdeps/ieee754/ldbl-128/s_asinhl.c b/sysdeps/ieee754/ldbl-128/s_asinhl.c index 83efb34447..307ca0023c 100644 --- a/sysdeps/ieee754/ldbl-128/s_asinhl.c +++ b/sysdeps/ieee754/ldbl-128/s_asinhl.c @@ -32,6 +32,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include #include +#include static const _Float128 one = 1, @@ -76,4 +77,4 @@ __asinhl (_Float128 x) else return w; } -weak_alias (__asinhl, asinhl) +libm_alias_ldouble (__asinh, asinh) diff --git a/sysdeps/ieee754/ldbl-128/s_atanl.c b/sysdeps/ieee754/ldbl-128/s_atanl.c index 6f2cd549ec..e05368df53 100644 --- a/sysdeps/ieee754/ldbl-128/s_atanl.c +++ b/sysdeps/ieee754/ldbl-128/s_atanl.c @@ -62,6 +62,7 @@ #include #include #include +#include /* arctan(k/8), k = 0, ..., 82 */ static const _Float128 atantbl[84] = { @@ -250,4 +251,4 @@ __atanl (_Float128 x) return u; } -weak_alias (__atanl, atanl) +libm_alias_ldouble (__atan, atan) diff --git a/sysdeps/ieee754/ldbl-128/s_cbrtl.c b/sysdeps/ieee754/ldbl-128/s_cbrtl.c index eb88d29fc9..526e850378 100644 --- a/sysdeps/ieee754/ldbl-128/s_cbrtl.c +++ b/sysdeps/ieee754/ldbl-128/s_cbrtl.c @@ -56,6 +56,7 @@ Adapted for glibc October, 2001. #include #include +#include static const _Float128 CBRT2 = L(1.259921049894873164767210607278228350570251); static const _Float128 CBRT4 = L(1.587401051968199474751705639272308260391493); @@ -132,4 +133,4 @@ __cbrtl (_Float128 x) return (x); } -weak_alias (__cbrtl, cbrtl) +libm_alias_ldouble (__cbrt, cbrt) diff --git a/sysdeps/ieee754/ldbl-128/s_ceill.c b/sysdeps/ieee754/ldbl-128/s_ceill.c index 8ac39fa929..e6aba5f2af 100644 --- a/sysdeps/ieee754/ldbl-128/s_ceill.c +++ b/sysdeps/ieee754/ldbl-128/s_ceill.c @@ -26,6 +26,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include +#include _Float128 __ceill(_Float128 x) { @@ -63,4 +64,4 @@ _Float128 __ceill(_Float128 x) SET_LDOUBLE_WORDS64(x,i0,i1); return x; } -weak_alias (__ceill, ceill) +libm_alias_ldouble (__ceil, ceil) diff --git a/sysdeps/ieee754/ldbl-128/s_copysignl.c b/sysdeps/ieee754/ldbl-128/s_copysignl.c index e514e3c767..d23e0f72ea 100644 --- a/sysdeps/ieee754/ldbl-128/s_copysignl.c +++ b/sysdeps/ieee754/ldbl-128/s_copysignl.c @@ -25,6 +25,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include +#include _Float128 __copysignl(_Float128 x, _Float128 y) { @@ -35,4 +36,4 @@ _Float128 __copysignl(_Float128 x, _Float128 y) |(hy&0x8000000000000000ULL)); return x; } -weak_alias (__copysignl, copysignl) +libm_alias_ldouble (__copysign, copysign) diff --git a/sysdeps/ieee754/ldbl-128/s_cosl.c b/sysdeps/ieee754/ldbl-128/s_cosl.c index ed3e77d0db..b315abccc5 100644 --- a/sysdeps/ieee754/ldbl-128/s_cosl.c +++ b/sysdeps/ieee754/ldbl-128/s_cosl.c @@ -47,6 +47,7 @@ #include #include #include +#include _Float128 __cosl(_Float128 x) { @@ -83,4 +84,4 @@ _Float128 __cosl(_Float128 x) } } } -weak_alias (__cosl, cosl) +libm_alias_ldouble (__cos, cos) diff --git a/sysdeps/ieee754/ldbl-128/s_erfl.c b/sysdeps/ieee754/ldbl-128/s_erfl.c index ce9e6ccc78..88e91c702d 100644 --- a/sysdeps/ieee754/ldbl-128/s_erfl.c +++ b/sysdeps/ieee754/ldbl-128/s_erfl.c @@ -100,6 +100,7 @@ #include #include #include +#include /* Evaluate P[n] x^n + P[n-1] x^(n-1) + ... + P[0] */ @@ -803,7 +804,7 @@ __erfl (_Float128 x) return( y ); } -weak_alias (__erfl, erfl) +libm_alias_ldouble (__erf, erf) _Float128 __erfcl (_Float128 x) { @@ -945,4 +946,4 @@ __erfcl (_Float128 x) } } -weak_alias (__erfcl, erfcl) +libm_alias_ldouble (__erfc, erfc) diff --git a/sysdeps/ieee754/ldbl-128/s_expm1l.c b/sysdeps/ieee754/ldbl-128/s_expm1l.c index 46d078b77b..ea0d29c493 100644 --- a/sysdeps/ieee754/ldbl-128/s_expm1l.c +++ b/sysdeps/ieee754/ldbl-128/s_expm1l.c @@ -57,6 +57,7 @@ #include #include #include +#include /* exp(x) - 1 = x + 0.5 x^2 + x^3 P(x)/Q(x) -.5 ln 2 < x < .5 ln 2 @@ -163,4 +164,4 @@ __expm1l (_Float128 x) return x; } libm_hidden_def (__expm1l) -weak_alias (__expm1l, expm1l) +libm_alias_ldouble (__expm1, expm1) diff --git a/sysdeps/ieee754/ldbl-128/s_fabsl.c b/sysdeps/ieee754/ldbl-128/s_fabsl.c index 1efb7a2954..8d554531be 100644 --- a/sysdeps/ieee754/ldbl-128/s_fabsl.c +++ b/sysdeps/ieee754/ldbl-128/s_fabsl.c @@ -23,6 +23,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include +#include _Float128 __fabsl(_Float128 x) { @@ -31,4 +32,4 @@ _Float128 __fabsl(_Float128 x) SET_LDOUBLE_MSW64(x,hx&0x7fffffffffffffffLL); return x; } -weak_alias (__fabsl, fabsl) +libm_alias_ldouble (__fabs, fabs) diff --git a/sysdeps/ieee754/ldbl-128/s_floorl.c b/sysdeps/ieee754/ldbl-128/s_floorl.c index 77b1473519..f9c5e014f9 100644 --- a/sysdeps/ieee754/ldbl-128/s_floorl.c +++ b/sysdeps/ieee754/ldbl-128/s_floorl.c @@ -26,6 +26,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include +#include _Float128 __floorl(_Float128 x) { @@ -64,4 +65,4 @@ _Float128 __floorl(_Float128 x) SET_LDOUBLE_WORDS64(x,i0,i1); return x; } -weak_alias (__floorl, floorl) +libm_alias_ldouble (__floor, floor) diff --git a/sysdeps/ieee754/ldbl-128/s_fmal.c b/sysdeps/ieee754/ldbl-128/s_fmal.c index 40c4e73d2b..077d515746 100644 --- a/sysdeps/ieee754/ldbl-128/s_fmal.c +++ b/sysdeps/ieee754/ldbl-128/s_fmal.c @@ -22,6 +22,7 @@ #include #include #include +#include #include /* This implementation uses rounding to odd to avoid problems with @@ -295,4 +296,4 @@ __fmal (_Float128 x, _Float128 y, _Float128 z) return v.d * L(0x1p-228); } } -weak_alias (__fmal, fmal) +libm_alias_ldouble (__fma, fma) diff --git a/sysdeps/ieee754/ldbl-128/s_frexpl.c b/sysdeps/ieee754/ldbl-128/s_frexpl.c index 7ac28f1685..bab0779e23 100644 --- a/sysdeps/ieee754/ldbl-128/s_frexpl.c +++ b/sysdeps/ieee754/ldbl-128/s_frexpl.c @@ -29,6 +29,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include +#include static const _Float128 two114 = L(2.0769187434139310514121985316880384E+34); /* 0x4071000000000000, 0 */ @@ -51,4 +52,4 @@ _Float128 __frexpl(_Float128 x, int *eptr) SET_LDOUBLE_MSW64(x,hx); return x; } -weak_alias (__frexpl, frexpl) +libm_alias_ldouble (__frexp, frexp) diff --git a/sysdeps/ieee754/ldbl-128/s_fromfpl.c b/sysdeps/ieee754/ldbl-128/s_fromfpl.c index f3fdba33c1..bcedceea8e 100644 --- a/sysdeps/ieee754/ldbl-128/s_fromfpl.c +++ b/sysdeps/ieee754/ldbl-128/s_fromfpl.c @@ -2,4 +2,4 @@ #define INEXACT 0 #define FUNC __fromfpl #include -weak_alias (__fromfpl, fromfpl) +libm_alias_ldouble (__fromfp, fromfp) diff --git a/sysdeps/ieee754/ldbl-128/s_fromfpl_main.c b/sysdeps/ieee754/ldbl-128/s_fromfpl_main.c index 7dc507111b..83e9e7edcd 100644 --- a/sysdeps/ieee754/ldbl-128/s_fromfpl_main.c +++ b/sysdeps/ieee754/ldbl-128/s_fromfpl_main.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include diff --git a/sysdeps/ieee754/ldbl-128/s_fromfpxl.c b/sysdeps/ieee754/ldbl-128/s_fromfpxl.c index 9477cc2ea7..0a342a22d1 100644 --- a/sysdeps/ieee754/ldbl-128/s_fromfpxl.c +++ b/sysdeps/ieee754/ldbl-128/s_fromfpxl.c @@ -2,4 +2,4 @@ #define INEXACT 1 #define FUNC __fromfpxl #include -weak_alias (__fromfpxl, fromfpxl) +libm_alias_ldouble (__fromfpx, fromfpx) diff --git a/sysdeps/ieee754/ldbl-128/s_getpayloadl.c b/sysdeps/ieee754/ldbl-128/s_getpayloadl.c index a7d395940d..c60bd302b0 100644 --- a/sysdeps/ieee754/ldbl-128/s_getpayloadl.c +++ b/sysdeps/ieee754/ldbl-128/s_getpayloadl.c @@ -18,6 +18,7 @@ #include #include +#include #include _Float128 @@ -55,4 +56,4 @@ __getpayloadl (const _Float128 *x) SET_LDOUBLE_WORDS64 (ret, hx, lx); return ret; } -weak_alias (__getpayloadl, getpayloadl) +libm_alias_ldouble (__getpayload, getpayload) diff --git a/sysdeps/ieee754/ldbl-128/s_llrintl.c b/sysdeps/ieee754/ldbl-128/s_llrintl.c index 94798cf425..415b682166 100644 --- a/sysdeps/ieee754/ldbl-128/s_llrintl.c +++ b/sysdeps/ieee754/ldbl-128/s_llrintl.c @@ -24,6 +24,7 @@ #include #include +#include #include static const _Float128 two112[2] = @@ -105,4 +106,4 @@ __llrintl (_Float128 x) return sx ? -result : result; } -weak_alias (__llrintl, llrintl) +libm_alias_ldouble (__llrint, llrint) diff --git a/sysdeps/ieee754/ldbl-128/s_llroundl.c b/sysdeps/ieee754/ldbl-128/s_llroundl.c index 8b44f1f502..4e0a1084a2 100644 --- a/sysdeps/ieee754/ldbl-128/s_llroundl.c +++ b/sysdeps/ieee754/ldbl-128/s_llroundl.c @@ -23,6 +23,7 @@ #include #include +#include #include long long int @@ -99,4 +100,4 @@ __llroundl (_Float128 x) return sign * result; } -weak_alias (__llroundl, llroundl) +libm_alias_ldouble (__llround, llround) diff --git a/sysdeps/ieee754/ldbl-128/s_logbl.c b/sysdeps/ieee754/ldbl-128/s_logbl.c index 24baae64fa..9264fe6616 100644 --- a/sysdeps/ieee754/ldbl-128/s_logbl.c +++ b/sysdeps/ieee754/ldbl-128/s_logbl.c @@ -25,6 +25,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include +#include _Float128 __logbl (_Float128 x) @@ -51,4 +52,4 @@ __logbl (_Float128 x) return (_Float128) (ex - 16383); } -weak_alias (__logbl, logbl) +libm_alias_ldouble (__logb, logb) diff --git a/sysdeps/ieee754/ldbl-128/s_lrintl.c b/sysdeps/ieee754/ldbl-128/s_lrintl.c index 49b736bd74..e71e1798d9 100644 --- a/sysdeps/ieee754/ldbl-128/s_lrintl.c +++ b/sysdeps/ieee754/ldbl-128/s_lrintl.c @@ -24,6 +24,7 @@ #include #include +#include #include static const _Float128 two112[2] = @@ -134,4 +135,4 @@ __lrintl (_Float128 x) return sx ? -result : result; } -weak_alias (__lrintl, lrintl) +libm_alias_ldouble (__lrint, lrint) diff --git a/sysdeps/ieee754/ldbl-128/s_lroundl.c b/sysdeps/ieee754/ldbl-128/s_lroundl.c index 15d010681d..abee144eff 100644 --- a/sysdeps/ieee754/ldbl-128/s_lroundl.c +++ b/sysdeps/ieee754/ldbl-128/s_lroundl.c @@ -23,6 +23,7 @@ #include #include +#include #include long int @@ -110,4 +111,4 @@ __lroundl (_Float128 x) return sign * result; } -weak_alias (__lroundl, lroundl) +libm_alias_ldouble (__lround, lround) diff --git a/sysdeps/ieee754/ldbl-128/s_modfl.c b/sysdeps/ieee754/ldbl-128/s_modfl.c index 6f7e48b173..2d0a2d739f 100644 --- a/sysdeps/ieee754/ldbl-128/s_modfl.c +++ b/sysdeps/ieee754/ldbl-128/s_modfl.c @@ -29,6 +29,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include +#include static const _Float128 one = 1.0; @@ -76,4 +77,4 @@ _Float128 __modfl(_Float128 x, _Float128 *iptr) } } } -weak_alias (__modfl, modfl) +libm_alias_ldouble (__modf, modf) diff --git a/sysdeps/ieee754/ldbl-128/s_nearbyintl.c b/sysdeps/ieee754/ldbl-128/s_nearbyintl.c index c1ee68be63..04b657d451 100644 --- a/sysdeps/ieee754/ldbl-128/s_nearbyintl.c +++ b/sysdeps/ieee754/ldbl-128/s_nearbyintl.c @@ -26,6 +26,7 @@ #include #include #include +#include static const _Float128 TWO112[2]={ @@ -64,4 +65,4 @@ _Float128 __nearbyintl(_Float128 x) fesetenv (&env); return t; } -weak_alias (__nearbyintl, nearbyintl) +libm_alias_ldouble (__nearbyint, nearbyint) diff --git a/sysdeps/ieee754/ldbl-128/s_nextafterl.c b/sysdeps/ieee754/ldbl-128/s_nextafterl.c index 6c63d17302..d8bf2b6144 100644 --- a/sysdeps/ieee754/ldbl-128/s_nextafterl.c +++ b/sysdeps/ieee754/ldbl-128/s_nextafterl.c @@ -27,6 +27,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include #include +#include _Float128 __nextafterl(_Float128 x, _Float128 y) { @@ -81,6 +82,6 @@ _Float128 __nextafterl(_Float128 x, _Float128 y) SET_LDOUBLE_WORDS64(x,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/ieee754/ldbl-128/s_nextupl.c b/sysdeps/ieee754/ldbl-128/s_nextupl.c index 9e778def53..d0683854bd 100644 --- a/sysdeps/ieee754/ldbl-128/s_nextupl.c +++ b/sysdeps/ieee754/ldbl-128/s_nextupl.c @@ -18,6 +18,7 @@ #include #include +#include /* Return the least floating-point number greater than X. */ _Float128 @@ -53,4 +54,4 @@ __nextupl (_Float128 x) return x; } -weak_alias (__nextupl, nextupl) +libm_alias_ldouble (__nextup, nextup) diff --git a/sysdeps/ieee754/ldbl-128/s_remquol.c b/sysdeps/ieee754/ldbl-128/s_remquol.c index fdecab58b6..ce7c675101 100644 --- a/sysdeps/ieee754/ldbl-128/s_remquol.c +++ b/sysdeps/ieee754/ldbl-128/s_remquol.c @@ -21,6 +21,7 @@ #include #include +#include static const _Float128 zero = 0.0; @@ -109,4 +110,4 @@ __remquol (_Float128 x, _Float128 y, int *quo) x = -x; return x; } -weak_alias (__remquol, remquol) +libm_alias_ldouble (__remquo, remquo) diff --git a/sysdeps/ieee754/ldbl-128/s_rintl.c b/sysdeps/ieee754/ldbl-128/s_rintl.c index dff5c43733..9e6637a225 100644 --- a/sysdeps/ieee754/ldbl-128/s_rintl.c +++ b/sysdeps/ieee754/ldbl-128/s_rintl.c @@ -29,6 +29,7 @@ static char rcsid[] = "$NetBSD: $"; #include #include +#include static const _Float128 TWO112[2]={ @@ -59,4 +60,4 @@ _Float128 __rintl(_Float128 x) w = TWO112[sx]+x; return w-TWO112[sx]; } -weak_alias (__rintl, rintl) +libm_alias_ldouble (__rint, rint) diff --git a/sysdeps/ieee754/ldbl-128/s_roundevenl.c b/sysdeps/ieee754/ldbl-128/s_roundevenl.c index e57367ba44..aa199b77ea 100644 --- a/sysdeps/ieee754/ldbl-128/s_roundevenl.c +++ b/sysdeps/ieee754/ldbl-128/s_roundevenl.c @@ -19,6 +19,7 @@ #include #include +#include #include #define BIAS 0x3fff @@ -100,4 +101,4 @@ __roundevenl (_Float128 x) SET_LDOUBLE_WORDS64 (x, hx, lx); return x; } -weak_alias (__roundevenl, roundevenl) +libm_alias_ldouble (__roundeven, roundeven) diff --git a/sysdeps/ieee754/ldbl-128/s_roundl.c b/sysdeps/ieee754/ldbl-128/s_roundl.c index 18e8b65670..cabb8a32a5 100644 --- a/sysdeps/ieee754/ldbl-128/s_roundl.c +++ b/sysdeps/ieee754/ldbl-128/s_roundl.c @@ -21,6 +21,7 @@ #include #include +#include _Float128 @@ -77,4 +78,4 @@ __roundl (_Float128 x) SET_LDOUBLE_WORDS64 (x, i0, i1); return x; } -weak_alias (__roundl, roundl) +libm_alias_ldouble (__round, round) diff --git a/sysdeps/ieee754/ldbl-128/s_setpayloadl.c b/sysdeps/ieee754/ldbl-128/s_setpayloadl.c index bb07a3533a..9f43c259ec 100644 --- a/sysdeps/ieee754/ldbl-128/s_setpayloadl.c +++ b/sysdeps/ieee754/ldbl-128/s_setpayloadl.c @@ -1,4 +1,4 @@ #define SIG 0 #define FUNC __setpayloadl #include -weak_alias (__setpayloadl, setpayloadl) +libm_alias_ldouble (__setpayload, setpayload) diff --git a/sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c b/sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c index 5646634db2..8fcef52a0f 100644 --- a/sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c +++ b/sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c @@ -18,6 +18,7 @@ #include #include +#include #include #include diff --git a/sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c b/sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c index 4e920360d4..cd82f295aa 100644 --- a/sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c +++ b/sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c @@ -1,4 +1,4 @@ #define SIG 1 #define FUNC __setpayloadsigl #include -weak_alias (__setpayloadsigl, setpayloadsigl) +libm_alias_ldouble (__setpayloadsig, setpayloadsig) diff --git a/sysdeps/ieee754/ldbl-128/s_sincosl.c b/sysdeps/ieee754/ldbl-128/s_sincosl.c index 34ca6ee03b..62b660fd7c 100644 --- a/sysdeps/ieee754/ldbl-128/s_sincosl.c +++ b/sysdeps/ieee754/ldbl-128/s_sincosl.c @@ -22,6 +22,7 @@ #include #include +#include void __sincosl (_Float128 x, _Float128 *sinx, _Float128 *cosx) @@ -70,4 +71,4 @@ __sincosl (_Float128 x, _Float128 *sinx, _Float128 *cosx) } } } -weak_alias (__sincosl, sincosl) +libm_alias_ldouble (__sincos, sincos) diff --git a/sysdeps/ieee754/ldbl-128/s_sinl.c b/sysdeps/ieee754/ldbl-128/s_sinl.c index 887e45dbfa..773b2fa7ee 100644 --- a/sysdeps/ieee754/ldbl-128/s_sinl.c +++ b/sysdeps/ieee754/ldbl-128/s_sinl.c @@ -47,6 +47,7 @@ #include #include #include +#include _Float128 __sinl(_Float128 x) { @@ -83,4 +84,4 @@ _Float128 __sinl(_Float128 x) } } } -weak_alias (__sinl, sinl) +libm_alias_ldouble (__sin, sin) diff --git a/sysdeps/ieee754/ldbl-128/s_tanhl.c b/sysdeps/ieee754/ldbl-128/s_tanhl.c index 861b7f82d3..8f62f96c50 100644 --- a/sysdeps/ieee754/ldbl-128/s_tanhl.c +++ b/sysdeps/ieee754/ldbl-128/s_tanhl.c @@ -44,6 +44,7 @@ #include #include #include +#include static const _Float128 one = 1.0, two = 2.0, tiny = L(1.0e-4900); @@ -97,4 +98,4 @@ __tanhl (_Float128 x) } return (jx & 0x80000000) ? -z : z; } -weak_alias (__tanhl, tanhl) +libm_alias_ldouble (__tanh, tanh) diff --git a/sysdeps/ieee754/ldbl-128/s_tanl.c b/sysdeps/ieee754/ldbl-128/s_tanl.c index cd7b258616..77db10f077 100644 --- a/sysdeps/ieee754/ldbl-128/s_tanl.c +++ b/sysdeps/ieee754/ldbl-128/s_tanl.c @@ -47,6 +47,7 @@ #include #include #include +#include _Float128 __tanl(_Float128 x) { @@ -77,4 +78,4 @@ _Float128 __tanl(_Float128 x) -1 -- n odd */ } } -weak_alias (__tanl, tanl) +libm_alias_ldouble (__tan, tan) diff --git a/sysdeps/ieee754/ldbl-128/s_totalorderl.c b/sysdeps/ieee754/ldbl-128/s_totalorderl.c index 78876070c3..87a494a832 100644 --- a/sysdeps/ieee754/ldbl-128/s_totalorderl.c +++ b/sysdeps/ieee754/ldbl-128/s_totalorderl.c @@ -18,6 +18,7 @@ #include #include +#include #include #include @@ -52,4 +53,4 @@ __totalorderl (_Float128 x, _Float128 y) ly ^= hy_sign; return hx < hy || (hx == hy && lx <= ly); } -weak_alias (__totalorderl, totalorderl) +libm_alias_ldouble (__totalorder, totalorder) diff --git a/sysdeps/ieee754/ldbl-128/s_totalordermagl.c b/sysdeps/ieee754/ldbl-128/s_totalordermagl.c index 11b58ef3d1..9436f6e233 100644 --- a/sysdeps/ieee754/ldbl-128/s_totalordermagl.c +++ b/sysdeps/ieee754/ldbl-128/s_totalordermagl.c @@ -18,6 +18,7 @@ #include #include +#include #include #include @@ -46,4 +47,4 @@ __totalordermagl (_Float128 x, _Float128 y) #endif return hx < hy || (hx == hy && lx <= ly); } -weak_alias (__totalordermagl, totalordermagl) +libm_alias_ldouble (__totalordermag, totalordermag) diff --git a/sysdeps/ieee754/ldbl-128/s_truncl.c b/sysdeps/ieee754/ldbl-128/s_truncl.c index b445a280e6..da09065097 100644 --- a/sysdeps/ieee754/ldbl-128/s_truncl.c +++ b/sysdeps/ieee754/ldbl-128/s_truncl.c @@ -21,6 +21,7 @@ #include #include +#include _Float128 @@ -53,4 +54,4 @@ __truncl (_Float128 x) return x; } -weak_alias (__truncl, truncl) +libm_alias_ldouble (__trunc, trunc) diff --git a/sysdeps/ieee754/ldbl-128/s_ufromfpl.c b/sysdeps/ieee754/ldbl-128/s_ufromfpl.c index 2176aa0cdd..22935e6ef7 100644 --- a/sysdeps/ieee754/ldbl-128/s_ufromfpl.c +++ b/sysdeps/ieee754/ldbl-128/s_ufromfpl.c @@ -2,4 +2,4 @@ #define INEXACT 0 #define FUNC __ufromfpl #include -weak_alias (__ufromfpl, ufromfpl) +libm_alias_ldouble (__ufromfp, ufromfp) diff --git a/sysdeps/ieee754/ldbl-128/s_ufromfpxl.c b/sysdeps/ieee754/ldbl-128/s_ufromfpxl.c index 2901151312..77a5423de8 100644 --- a/sysdeps/ieee754/ldbl-128/s_ufromfpxl.c +++ b/sysdeps/ieee754/ldbl-128/s_ufromfpxl.c @@ -2,4 +2,4 @@ #define INEXACT 1 #define FUNC __ufromfpxl #include -weak_alias (__ufromfpxl, ufromfpxl) +libm_alias_ldouble (__ufromfpx, ufromfpx) -- cgit 1.4.1