diff options
41 files changed, 169 insertions, 39 deletions
@@ -1,3 +1,99 @@ +2017-09-22 Joseph Myers <joseph@codesourcery.com> + + * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>. + (asinhf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>. + (atanf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>. + (cbrtf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>. + (ceilf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_copysignf.c: Include + <libm-alias-float.h>. + (copysignf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>. + (cosf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>. + (erff): Define using libm_alias_float. + (erfcf): Likewise. + * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>. + (expm1f): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>. + (fabsf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>. + (floorf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>. + (frexpf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using + libm_alias_float. + * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include + <libm-alias-float.h>. + * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using + libm_alias_float. + * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include + <libm-alias-float.h>. + (getpayloadf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_llrintf.c: Include + <libm-alias-float.h>. + (llrintf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_llroundf.c: Include + <libm-alias-float.h>. + (llroundf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>. + (logbf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>. + (lrintf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>. + (lroundf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>. + (modff): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include + <libm-alias-float.h>. + (nearbyintf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_nextafterf.c: Include + <libm-alias-float.h>. + (nextafterf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_nextupf.c: Include + <libm-alias-float.h>. + (nextupf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_remquof.c: Include + <libm-alias-float.h>. + (remquof): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>. + (rintf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_roundevenf.c: Include + <libm-alias-float.h>. + (roundevenf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>. + (roundf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define + using libm_alias_float. + * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include + <libm-alias-float.h>. + * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf): + Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_sincosf.c: Include + <libm-alias-float.h>. + (sincosf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>. + (sinf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>. + (tanf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>. + (tanhf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_totalorderf.c: Include + <libm-alias-float.h>. + (totalorderf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include + <libm-alias-float.h>. + (totalordermagf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>. + (truncf): Define using libm_alias_float. + * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using + libm_alias_float. + * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using + libm_alias_float. + 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br> [BZ #22146] diff --git a/sysdeps/ieee754/flt-32/s_asinhf.c b/sysdeps/ieee754/flt-32/s_asinhf.c index da9cafb600..165a7548ca 100644 --- a/sysdeps/ieee754/flt-32/s_asinhf.c +++ b/sysdeps/ieee754/flt-32/s_asinhf.c @@ -16,6 +16,7 @@ #include <float.h> #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> static const float one = 1.0000000000e+00, /* 0x3F800000 */ @@ -47,4 +48,4 @@ __asinhf(float x) } return __copysignf(w, x); } -weak_alias (__asinhf, asinhf) +libm_alias_float (__asinh, asinh) diff --git a/sysdeps/ieee754/flt-32/s_atanf.c b/sysdeps/ieee754/flt-32/s_atanf.c index e322a1d41f..03a4cfd6a5 100644 --- a/sysdeps/ieee754/flt-32/s_atanf.c +++ b/sysdeps/ieee754/flt-32/s_atanf.c @@ -20,6 +20,7 @@ static char rcsid[] = "$NetBSD: s_atanf.c,v 1.4 1995/05/10 20:46:47 jtc Exp $"; #include <float.h> #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> static const float atanhi[] = { 4.6364760399e-01, /* atan(0.5)hi 0x3eed6338 */ @@ -98,4 +99,4 @@ float __atanf(float x) return (hx<0)? -z:z; } } -weak_alias (__atanf, atanf) +libm_alias_float (__atan, atan) diff --git a/sysdeps/ieee754/flt-32/s_cbrtf.c b/sysdeps/ieee754/flt-32/s_cbrtf.c index 1ac294c189..a6f368770a 100644 --- a/sysdeps/ieee754/flt-32/s_cbrtf.c +++ b/sysdeps/ieee754/flt-32/s_cbrtf.c @@ -20,6 +20,7 @@ #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> #define CBRT2 1.2599210498948731648 /* 2^(1/3) */ @@ -60,4 +61,4 @@ __cbrtf (float x) return __ldexpf (x > 0.0 ? ym : -ym, xe / 3); } -weak_alias (__cbrtf, cbrtf) +libm_alias_float (__cbrt, cbrt) diff --git a/sysdeps/ieee754/flt-32/s_ceilf.c b/sysdeps/ieee754/flt-32/s_ceilf.c index 9676dc6645..f289ec2341 100644 --- a/sysdeps/ieee754/flt-32/s_ceilf.c +++ b/sysdeps/ieee754/flt-32/s_ceilf.c @@ -15,6 +15,7 @@ #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> float @@ -44,5 +45,5 @@ __ceilf(float x) return x; } #ifndef __ceilf -weak_alias (__ceilf, ceilf) +libm_alias_float (__ceil, ceil) #endif diff --git a/sysdeps/ieee754/flt-32/s_copysignf.c b/sysdeps/ieee754/flt-32/s_copysignf.c index 9b88816866..3c4ac7ce68 100644 --- a/sysdeps/ieee754/flt-32/s_copysignf.c +++ b/sysdeps/ieee754/flt-32/s_copysignf.c @@ -25,6 +25,7 @@ static char rcsid[] = "$NetBSD: s_copysignf.c,v 1.4 1995/05/10 20:46:59 jtc Exp #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> float __copysignf(float x, float y) { @@ -34,4 +35,4 @@ float __copysignf(float x, float y) SET_FLOAT_WORD(x,(ix&0x7fffffff)|(iy&0x80000000)); return x; } -weak_alias (__copysignf, copysignf) +libm_alias_float (__copysign, copysign) diff --git a/sysdeps/ieee754/flt-32/s_cosf.c b/sysdeps/ieee754/flt-32/s_cosf.c index 0affd406bb..5ed0bcaba3 100644 --- a/sysdeps/ieee754/flt-32/s_cosf.c +++ b/sysdeps/ieee754/flt-32/s_cosf.c @@ -20,6 +20,7 @@ static char rcsid[] = "$NetBSD: s_cosf.c,v 1.4 1995/05/10 20:47:03 jtc Exp $"; #include <errno.h> #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> #ifndef COSF # define COSF_FUNC __cosf @@ -59,5 +60,5 @@ float COSF_FUNC(float x) } #ifndef COSF -weak_alias (__cosf, cosf) +libm_alias_float (__cos, cos) #endif diff --git a/sysdeps/ieee754/flt-32/s_erff.c b/sysdeps/ieee754/flt-32/s_erff.c index 07760c343b..6eacf0f5fc 100644 --- a/sysdeps/ieee754/flt-32/s_erff.c +++ b/sysdeps/ieee754/flt-32/s_erff.c @@ -21,6 +21,7 @@ static char rcsid[] = "$NetBSD: s_erff.c,v 1.4 1995/05/10 20:47:07 jtc Exp $"; #include <float.h> #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> #include <fix-int-fp-convert-zero.h> static const float @@ -152,7 +153,7 @@ float __erff(float x) r = __ieee754_expf(-z*z-(float)0.5625)*__ieee754_expf((z-x)*(z+x)+R/S); if(hx>=0) return one-r/x; else return r/x-one; } -weak_alias (__erff, erff) +libm_alias_float (__erf, erf) float __erfcf(float x) { @@ -227,4 +228,4 @@ float __erfcf(float x) return two-tiny; } } -weak_alias (__erfcf, erfcf) +libm_alias_float (__erfc, erfc) diff --git a/sysdeps/ieee754/flt-32/s_expm1f.c b/sysdeps/ieee754/flt-32/s_expm1f.c index 00ca789344..0358970778 100644 --- a/sysdeps/ieee754/flt-32/s_expm1f.c +++ b/sysdeps/ieee754/flt-32/s_expm1f.c @@ -17,6 +17,7 @@ #include <float.h> #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> static const float huge = 1.0e+30; static const float tiny = 1.0e-30; @@ -127,4 +128,4 @@ __expm1f(float x) } return y; } -weak_alias (__expm1f, expm1f) +libm_alias_float (__expm1, expm1) diff --git a/sysdeps/ieee754/flt-32/s_fabsf.c b/sysdeps/ieee754/flt-32/s_fabsf.c index 297abe64bd..d3f6eb830b 100644 --- a/sysdeps/ieee754/flt-32/s_fabsf.c +++ b/sysdeps/ieee754/flt-32/s_fabsf.c @@ -22,9 +22,10 @@ static char rcsid[] = "$NetBSD: s_fabsf.c,v 1.4 1995/05/10 20:47:15 jtc Exp $"; */ #include <math.h> +#include <libm-alias-float.h> float __fabsf(float x) { return __builtin_fabsf (x); } -weak_alias (__fabsf, fabsf) +libm_alias_float (__fabs, fabs) diff --git a/sysdeps/ieee754/flt-32/s_floorf.c b/sysdeps/ieee754/flt-32/s_floorf.c index 43e284a158..12aed343a0 100644 --- a/sysdeps/ieee754/flt-32/s_floorf.c +++ b/sysdeps/ieee754/flt-32/s_floorf.c @@ -22,6 +22,7 @@ #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> float __floorf(float x) @@ -50,5 +51,5 @@ __floorf(float x) return x; } #ifndef __floorf -weak_alias (__floorf, floorf) +libm_alias_float (__floor, floor) #endif diff --git a/sysdeps/ieee754/flt-32/s_frexpf.c b/sysdeps/ieee754/flt-32/s_frexpf.c index 005367cf58..b7403bf0d8 100644 --- a/sysdeps/ieee754/flt-32/s_frexpf.c +++ b/sysdeps/ieee754/flt-32/s_frexpf.c @@ -19,6 +19,7 @@ static char rcsid[] = "$NetBSD: s_frexpf.c,v 1.5 1995/05/10 20:47:26 jtc Exp $"; #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> static const float two25 = 3.3554432000e+07; /* 0x4c000000 */ @@ -41,4 +42,4 @@ float __frexpf(float x, int *eptr) SET_FLOAT_WORD(x,hx); return x; } -weak_alias (__frexpf, frexpf) +libm_alias_float (__frexp, frexp) diff --git a/sysdeps/ieee754/flt-32/s_fromfpf.c b/sysdeps/ieee754/flt-32/s_fromfpf.c index 66489bcf93..d0c83b8f5d 100644 --- a/sysdeps/ieee754/flt-32/s_fromfpf.c +++ b/sysdeps/ieee754/flt-32/s_fromfpf.c @@ -2,4 +2,4 @@ #define INEXACT 0 #define FUNC __fromfpf #include <s_fromfpf_main.c> -weak_alias (__fromfpf, fromfpf) +libm_alias_float (__fromfp, fromfp) diff --git a/sysdeps/ieee754/flt-32/s_fromfpf_main.c b/sysdeps/ieee754/flt-32/s_fromfpf_main.c index 3a4ad80e55..d9909eab93 100644 --- a/sysdeps/ieee754/flt-32/s_fromfpf_main.c +++ b/sysdeps/ieee754/flt-32/s_fromfpf_main.c @@ -20,6 +20,7 @@ #include <fenv.h> #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> #include <stdbool.h> #include <stdint.h> diff --git a/sysdeps/ieee754/flt-32/s_fromfpxf.c b/sysdeps/ieee754/flt-32/s_fromfpxf.c index 61f3e2f461..01d9247c31 100644 --- a/sysdeps/ieee754/flt-32/s_fromfpxf.c +++ b/sysdeps/ieee754/flt-32/s_fromfpxf.c @@ -2,4 +2,4 @@ #define INEXACT 1 #define FUNC __fromfpxf #include <s_fromfpf_main.c> -weak_alias (__fromfpxf, fromfpxf) +libm_alias_float (__fromfpx, fromfpx) diff --git a/sysdeps/ieee754/flt-32/s_getpayloadf.c b/sysdeps/ieee754/flt-32/s_getpayloadf.c index 1958a3ea71..b4fa3fab98 100644 --- a/sysdeps/ieee754/flt-32/s_getpayloadf.c +++ b/sysdeps/ieee754/flt-32/s_getpayloadf.c @@ -19,6 +19,7 @@ #include <fix-int-fp-convert-zero.h> #include <math.h> #include <math_private.h> +#include <libm-alias-float.h> #include <stdint.h> float @@ -31,4 +32,4 @@ __getpayloadf (const float *x) return 0.0f; return (float) ix; } -weak_alias (__getpayloadf, getpayloadf) +libm_alias_float (__getpayload, getpayload) diff --git a/sysdeps/ieee754/flt-32/s_llrintf.c b/sysdeps/ieee754/flt-32/s_llrintf.c index fd46653ae6..e83e328a7c 100644 --- a/sysdeps/ieee754/flt-32/s_llrintf.c +++ b/ |
