diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-11-29 19:01:21 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-11-29 19:01:21 +0000 |
commit | 011fba7e4802051c7ed7e3b6fdafad407b17094b (patch) | |
tree | 0aa543faafc5c425806ccee06c152a00be587970 /sysdeps/x86_64/x32 | |
parent | 21bfcc3d245734618f4fcb710b91c41b1483975b (diff) | |
download | glibc-011fba7e4802051c7ed7e3b6fdafad407b17094b.tar.gz glibc-011fba7e4802051c7ed7e3b6fdafad407b17094b.tar.xz glibc-011fba7e4802051c7ed7e3b6fdafad407b17094b.zip |
Use libm_alias_double for x86_64.
Continuing the preparation for additional _FloatN / _FloatNx function aliases, this patch makes x86_64 libm function implementations use libm_alias_double to define function aliases. Tested with the glibc testsuite for x86_64, and tested with build-many-glibcs.py for all its x86_64 configurations that installed stripped shared libraries are unchanged by the patch. * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include <libm-alias-double.h>. (atan): Define using libm_alias_double. * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include <libm-alias-double.h>. (ceil): Define using libm_alias_double. * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include <libm-alias-double.h>. (floor): Define using libm_alias_double. * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include <libm-alias-double.h>. (fma): Define using libm_alias_double. * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include <libm-alias-double.h>. (nearbyint): Define using libm_alias_double. * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include <libm-alias-double.h>. (rint): Define using libm_alias_double. * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include <libm-alias-double.h>. (sin): Define using libm_alias_double. (cos): Likewise. * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include <libm-alias-double.h>. (tan): Define using libm_alias_double. * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include <libm-alias-double.h>. (trunc): Define using libm_alias_double. * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>. (copysign): Define using libm_alias_double. * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>. (fabs): Define using libm_alias_double. * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>. (fmax): Define using libm_alias_double. * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>. (fmin): Define using libm_alias_double. * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>. (llrint): Define using libm_alias_double. [!__ILP32__] (lrint): Likewise. * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>. (lrint): Define using libm_alias_double.
Diffstat (limited to 'sysdeps/x86_64/x32')
-rw-r--r-- | sysdeps/x86_64/x32/fpu/s_lrint.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/x86_64/x32/fpu/s_lrint.S b/sysdeps/x86_64/x32/fpu/s_lrint.S index 86d258c192..373351556b 100644 --- a/sysdeps/x86_64/x32/fpu/s_lrint.S +++ b/sysdeps/x86_64/x32/fpu/s_lrint.S @@ -18,10 +18,11 @@ <http://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <libm-alias-double.h> .text ENTRY(__lrint) cvtsd2si %xmm0,%eax ret END(__lrint) -weak_alias (__lrint, lrint) +libm_alias_double (__lrint, lrint) |