Use libm_alias_float in flt-32.

System Internals / glibc - Joseph Myers [codesourcery.com] - 22 September 2017 16:24 EDT

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.

2f49ce7 Use libm_alias_float in flt-32.
ChangeLog | 96 +++++++++++++++++++++++++++++
sysdeps/ieee754/flt-32/s_asinhf.c | 3 +-
sysdeps/ieee754/flt-32/s_atanf.c | 3 +-
sysdeps/ieee754/flt-32/s_cbrtf.c | 3 +-
sysdeps/ieee754/flt-32/s_ceilf.c | 3 +-
sysdeps/ieee754/flt-32/s_copysignf.c | 3 +-
sysdeps/ieee754/flt-32/s_cosf.c | 3 +-
sysdeps/ieee754/flt-32/s_erff.c | 5 +-
sysdeps/ieee754/flt-32/s_expm1f.c | 3 +-
sysdeps/ieee754/flt-32/s_fabsf.c | 3 +-
sysdeps/ieee754/flt-32/s_floorf.c | 3 +-
sysdeps/ieee754/flt-32/s_frexpf.c | 3 +-
sysdeps/ieee754/flt-32/s_fromfpf.c | 2 +-
sysdeps/ieee754/flt-32/s_fromfpf_main.c | 1 +
sysdeps/ieee754/flt-32/s_fromfpxf.c | 2 +-
sysdeps/ieee754/flt-32/s_getpayloadf.c | 3 +-
sysdeps/ieee754/flt-32/s_llrintf.c | 3 +-
sysdeps/ieee754/flt-32/s_llroundf.c | 3 +-
sysdeps/ieee754/flt-32/s_logbf.c | 3 +-
sysdeps/ieee754/flt-32/s_lrintf.c | 3 +-
sysdeps/ieee754/flt-32/s_lroundf.c | 3 +-
sysdeps/ieee754/flt-32/s_modff.c | 3 +-
sysdeps/ieee754/flt-32/s_nearbyintf.c | 3 +-
sysdeps/ieee754/flt-32/s_nextafterf.c | 3 +-
sysdeps/ieee754/flt-32/s_nextupf.c | 3 +-
sysdeps/ieee754/flt-32/s_remquof.c | 3 +-
sysdeps/ieee754/flt-32/s_rintf.c | 3 +-
sysdeps/ieee754/flt-32/s_roundevenf.c | 3 +-
sysdeps/ieee754/flt-32/s_roundf.c | 3 +-
sysdeps/ieee754/flt-32/s_setpayloadf.c | 2 +-
sysdeps/ieee754/flt-32/s_setpayloadf_main.c | 1 +
sysdeps/ieee754/flt-32/s_setpayloadsigf.c | 2 +-
sysdeps/ieee754/flt-32/s_sincosf.c | 3 +-
sysdeps/ieee754/flt-32/s_sinf.c | 3 +-
sysdeps/ieee754/flt-32/s_tanf.c | 3 +-
sysdeps/ieee754/flt-32/s_tanhf.c | 3 +-
sysdeps/ieee754/flt-32/s_totalorderf.c | 3 +-
sysdeps/ieee754/flt-32/s_totalordermagf.c | 3 +-
sysdeps/ieee754/flt-32/s_truncf.c | 3 +-
sysdeps/ieee754/flt-32/s_ufromfpf.c | 2 +-
sysdeps/ieee754/flt-32/s_ufromfpxf.c | 2 +-
41 files changed, 169 insertions(+), 39 deletions(-)

Upstream: sourceware.org


  • Share