From 5bcdb315295f3bb73c082fc944d9e10a304adb0a Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 15 Sep 2017 17:12:02 +0000 Subject: 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 . (fmaf): Define using libm_alias_float. * math/w_acosf_compat.c: Include . (acosf): Define using libm_alias_float. * math/w_acoshf_compat.c: Include . (acoshf): Define using libm_alias_float. * math/w_asinf_compat.c: Include . (asinf): Define using libm_alias_float. * math/w_atan2f_compat.c: Include . (atan2f): Define using libm_alias_float. * math/w_atanhf_compat.c: Include . (atanhf): Define using libm_alias_float. * math/w_coshf_compat.c: Include . (coshf): Define using libm_alias_float. * math/w_exp10f_compat.c: Include . (exp10f): Define using libm_alias_float. * math/w_fmodf_compat.c: Include . (fmodf): Define using libm_alias_float. * math/w_hypotf_compat.c: Include . (hypotf): Define using libm_alias_float. * math/w_j0f_compat.c: Include . (j0f): Define using libm_alias_float. (y0f): Likewise. * math/w_j1f_compat.c: Include . (j1f): Define using libm_alias_float. (y1f): Likewise. * math/w_jnf_compat.c: Include . (jnf): Define using libm_alias_float. (ynf): Likewise. * math/w_log10f_compat.c: Include . (log10f): Define using libm_alias_float. * math/w_log2f_compat.c: Include . (log2f): Define using libm_alias_float. * math/w_logf_compat.c: Include . (logf): Define using libm_alias_float. * math/w_powf_compat.c: Include . (powf): Define using libm_alias_float. * math/w_remainderf_compat.c: Include . (remainderf): Define using libm_alias_float. * math/w_sinhf_compat.c: Include . (sinhf): Define using libm_alias_float. * math/w_sqrtf_compat.c: Include . (sqrtf): Define using libm_alias_float. * math/w_tgammaf_compat.c: Include . (tgammaf): Define using libm_alias_float. --- ChangeLog | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 97267d86c0..56f9c6809b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,51 @@ +2017-09-15 Joseph Myers + + * math/s_fmaf.c: Include . + (fmaf): Define using libm_alias_float. + * math/w_acosf_compat.c: Include . + (acosf): Define using libm_alias_float. + * math/w_acoshf_compat.c: Include . + (acoshf): Define using libm_alias_float. + * math/w_asinf_compat.c: Include . + (asinf): Define using libm_alias_float. + * math/w_atan2f_compat.c: Include . + (atan2f): Define using libm_alias_float. + * math/w_atanhf_compat.c: Include . + (atanhf): Define using libm_alias_float. + * math/w_coshf_compat.c: Include . + (coshf): Define using libm_alias_float. + * math/w_exp10f_compat.c: Include . + (exp10f): Define using libm_alias_float. + * math/w_fmodf_compat.c: Include . + (fmodf): Define using libm_alias_float. + * math/w_hypotf_compat.c: Include . + (hypotf): Define using libm_alias_float. + * math/w_j0f_compat.c: Include . + (j0f): Define using libm_alias_float. + (y0f): Likewise. + * math/w_j1f_compat.c: Include . + (j1f): Define using libm_alias_float. + (y1f): Likewise. + * math/w_jnf_compat.c: Include . + (jnf): Define using libm_alias_float. + (ynf): Likewise. + * math/w_log10f_compat.c: Include . + (log10f): Define using libm_alias_float. + * math/w_log2f_compat.c: Include . + (log2f): Define using libm_alias_float. + * math/w_logf_compat.c: Include . + (logf): Define using libm_alias_float. + * math/w_powf_compat.c: Include . + (powf): Define using libm_alias_float. + * math/w_remainderf_compat.c: Include . + (remainderf): Define using libm_alias_float. + * math/w_sinhf_compat.c: Include . + (sinhf): Define using libm_alias_float. + * math/w_sqrtf_compat.c: Include . + (sqrtf): Define using libm_alias_float. + * math/w_tgammaf_compat.c: Include . + (tgammaf): Define using libm_alias_float. + 2017-09-14 Joseph Myers * include/math.h (roundeven): Change hidden_proto call to -- cgit v1.2.3