From 5de606387b60d57399e61bdb78d6697139ceb445 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 28 Nov 2017 00:07:56 +0000 Subject: Use libm_alias_double for alpha. Continuing the preparation for additional _FloatN / _FloatNx function aliases, this patch makes alpha libm function implementations use libm_alias_double to define function aliases. This also simplifies the code because the compatibility for long double = double is handled by libm_alias_double instead of locally in each source file. Tested with build-many-glibcs.py for alpha-linux-gnu that installed stripped shared libraries are unchanged by the patch. * sysdeps/alpha/fpu/s_ceil.c: Include . (ceil): Define using libm_alias_double. * sysdeps/alpha/fpu/s_copysign.c: Include . (copysign): Define using libm_alias_double. * sysdeps/alpha/fpu/s_fabs.c: Include . (fabs): Define using libm_alias_double. * sysdeps/alpha/fpu/s_floor.c: Include . (floor): Define using libm_alias_double. * sysdeps/alpha/fpu/s_fmax.S: Include . (fmax): Define using libm_alias_double. * sysdeps/alpha/fpu/s_fmin.S: Include . (fmin): Define using libm_alias_double. * sysdeps/alpha/fpu/s_lrint.c: Include . (lrint): Define using libm_alias_double. (llrint): Likewise. * sysdeps/alpha/fpu/s_lround.c: Include . (lround): Define using libm_alias_double. (llround): Likewise. * sysdeps/alpha/fpu/s_rint.c: Include . (rint): Define using libm_alias_double. * sysdeps/alpha/fpu/s_trunc.c: Include . (trunc): Define using libm_alias_double. --- ChangeLog | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 70ea90a..aa41616 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,28 @@ 2017-11-28 Joseph Myers + * sysdeps/alpha/fpu/s_ceil.c: Include . + (ceil): Define using libm_alias_double. + * sysdeps/alpha/fpu/s_copysign.c: Include . + (copysign): Define using libm_alias_double. + * sysdeps/alpha/fpu/s_fabs.c: Include . + (fabs): Define using libm_alias_double. + * sysdeps/alpha/fpu/s_floor.c: Include . + (floor): Define using libm_alias_double. + * sysdeps/alpha/fpu/s_fmax.S: Include . + (fmax): Define using libm_alias_double. + * sysdeps/alpha/fpu/s_fmin.S: Include . + (fmin): Define using libm_alias_double. + * sysdeps/alpha/fpu/s_lrint.c: Include . + (lrint): Define using libm_alias_double. + (llrint): Likewise. + * sysdeps/alpha/fpu/s_lround.c: Include . + (lround): Define using libm_alias_double. + (llround): Likewise. + * sysdeps/alpha/fpu/s_rint.c: Include . + (rint): Define using libm_alias_double. + * sysdeps/alpha/fpu/s_trunc.c: Include . + (trunc): Define using libm_alias_double. + * sysdeps/ieee754/ldbl-opt/libm-alias-double.h (libm_alias_double_r): Add semicolon after weak_alias call. -- cgit v1.1