diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-09-15 17:12:02 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-09-15 17:12:02 +0000 |
commit | 5bcdb315295f3bb73c082fc944d9e10a304adb0a (patch) | |
tree | ae0842b6e7d2d81e2e18415a62bd7382f66057c2 /math/w_j0f_compat.c | |
parent | 01f2881245eabf6daeeb8505242047ece4027c5a (diff) | |
download | glibc-5bcdb315295f3bb73c082fc944d9e10a304adb0a.tar glibc-5bcdb315295f3bb73c082fc944d9e10a304adb0a.tar.gz glibc-5bcdb315295f3bb73c082fc944d9e10a304adb0a.tar.bz2 glibc-5bcdb315295f3bb73c082fc944d9e10a304adb0a.zip |
Use libm_alias_float in math/.
This patch converts libm function implementations in math/ from using
weak_alias to using libm_alias_float to define public function names,
in cases where it would be appropriate to define _Float32 aliases for
those functions as well. expf and exp2f are omitted from this patch,
given the in-progress patches that would change their symbol
versioning arrangements (at a later stage it will be necessary to add
macros that can be used for functions with such symbol versioning
arrangements - which will apply to lgammaf as well - but for the
initial patches in this area I'm just dealing with easy cases, and any
symbol versioning changes to these functions while the work is in
progress can effectively just undo the libm_alias_* changes as regards
those functions).
Tested for x86_64. Also tested with build-many-glibcs.py that
installed stripped shared libraries are unchanged by the patch.
* math/s_fmaf.c: Include <libm-alias-float.h>.
(fmaf): Define using libm_alias_float.
* math/w_acosf_compat.c: Include <libm-alias-float.h>.
(acosf): Define using libm_alias_float.
* math/w_acoshf_compat.c: Include <libm-alias-float.h>.
(acoshf): Define using libm_alias_float.
* math/w_asinf_compat.c: Include <libm-alias-float.h>.
(asinf): Define using libm_alias_float.
* math/w_atan2f_compat.c: Include <libm-alias-float.h>.
(atan2f): Define using libm_alias_float.
* math/w_atanhf_compat.c: Include <libm-alias-float.h>.
(atanhf): Define using libm_alias_float.
* math/w_coshf_compat.c: Include <libm-alias-float.h>.
(coshf): Define using libm_alias_float.
* math/w_exp10f_compat.c: Include <libm-alias-float.h>.
(exp10f): Define using libm_alias_float.
* math/w_fmodf_compat.c: Include <libm-alias-float.h>.
(fmodf): Define using libm_alias_float.
* math/w_hypotf_compat.c: Include <libm-alias-float.h>.
(hypotf): Define using libm_alias_float.
* math/w_j0f_compat.c: Include <libm-alias-float.h>.
(j0f): Define using libm_alias_float.
(y0f): Likewise.
* math/w_j1f_compat.c: Include <libm-alias-float.h>.
(j1f): Define using libm_alias_float.
(y1f): Likewise.
* math/w_jnf_compat.c: Include <libm-alias-float.h>.
(jnf): Define using libm_alias_float.
(ynf): Likewise.
* math/w_log10f_compat.c: Include <libm-alias-float.h>.
(log10f): Define using libm_alias_float.
* math/w_log2f_compat.c: Include <libm-alias-float.h>.
(log2f): Define using libm_alias_float.
* math/w_logf_compat.c: Include <libm-alias-float.h>.
(logf): Define using libm_alias_float.
* math/w_powf_compat.c: Include <libm-alias-float.h>.
(powf): Define using libm_alias_float.
* math/w_remainderf_compat.c: Include <libm-alias-float.h>.
(remainderf): Define using libm_alias_float.
* math/w_sinhf_compat.c: Include <libm-alias-float.h>.
(sinhf): Define using libm_alias_float.
* math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
(sqrtf): Define using libm_alias_float.
* math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
(tgammaf): Define using libm_alias_float.
Diffstat (limited to 'math/w_j0f_compat.c')
-rw-r--r-- | math/w_j0f_compat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/math/w_j0f_compat.c b/math/w_j0f_compat.c index 0ef4179bfa..3c0cdaea27 100644 --- a/math/w_j0f_compat.c +++ b/math/w_j0f_compat.c @@ -20,6 +20,7 @@ #include <math.h> #include <math_private.h> #include <math-svid-compat.h> +#include <libm-alias-float.h> #if LIBM_SVID_COMPAT @@ -34,7 +35,7 @@ __j0f (float x) return __ieee754_j0f (x); } -weak_alias (__j0f, j0f) +libm_alias_float (__j0, j0) /* wrapper y0f */ @@ -64,5 +65,5 @@ __y0f (float x) return __ieee754_y0f (x); } -weak_alias (__y0f, y0f) +libm_alias_float (__y0, y0) #endif |