From 2f49ce7d6263588c0b4c60a42e95ff954cf3c7d2 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 22 Sep 2017 20:24:12 +0000 Subject: Use libm_alias_float in flt-32. This patch makes flt-32 libm functions use libm_alias_float to define public interfaces (in cases where _Float32 aliases of those interfaces would be appropriate, so not for finitef / isinff / isnanf). Tested for x86_64. Also tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by the patch. * sysdeps/ieee754/flt-32/s_asinhf.c: Include . (asinhf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_atanf.c: Include . (atanf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_cbrtf.c: Include . (cbrtf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_ceilf.c: Include . (ceilf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_copysignf.c: Include . (copysignf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_cosf.c: Include . (cosf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_erff.c: Include . (erff): Define using libm_alias_float. (erfcf): Likewise. * sysdeps/ieee754/flt-32/s_expm1f.c: Include . (expm1f): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_fabsf.c: Include . (fabsf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_floorf.c: Include . (floorf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_frexpf.c: Include . (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 . * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include . (getpayloadf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_llrintf.c: Include . (llrintf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_llroundf.c: Include . (llroundf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_logbf.c: Include . (logbf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_lrintf.c: Include . (lrintf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_lroundf.c: Include . (lroundf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_modff.c: Include . (modff): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include . (nearbyintf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_nextafterf.c: Include . (nextafterf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_nextupf.c: Include . (nextupf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_remquof.c: Include . (remquof): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_rintf.c: Include . (rintf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_roundevenf.c: Include . (roundevenf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_roundf.c: Include . (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 . * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_sincosf.c: Include . (sincosf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_sinf.c: Include . (sinf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_tanf.c: Include . (tanf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_tanhf.c: Include . (tanhf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_totalorderf.c: Include . (totalorderf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include . (totalordermagf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_truncf.c: Include . (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. --- sysdeps/ieee754/flt-32/s_sincosf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/ieee754/flt-32/s_sincosf.c') diff --git a/sysdeps/ieee754/flt-32/s_sincosf.c b/sysdeps/ieee754/flt-32/s_sincosf.c index 3ab92ee0ba..4946a6eb54 100644 --- a/sysdeps/ieee754/flt-32/s_sincosf.c +++ b/sysdeps/ieee754/flt-32/s_sincosf.c @@ -21,6 +21,7 @@ #include #include +#include #ifndef SINCOSF # define SINCOSF_FUNC __sincosf @@ -80,5 +81,5 @@ SINCOSF_FUNC (float x, float *sinx, float *cosx) } #ifndef SINCOSF -weak_alias (__sincosf, sincosf) +libm_alias_float (__sincos, sincos) #endif -- cgit 1.4.1