From 7e16a5d1d19effc7b2775942f592520cfff03d92 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 4 Oct 2017 20:32:48 +0000 Subject: Use libm_alias_double for dbl-64 fma. This patch makes dbl-64 fma use libm_alias_double. The ldbl-opt version is removed. The sparc32 version no longer needs to handle compat symbols, while alpha needs a new wrapper to avoid getting the ldbl-128 version (where ldbl-opt is earlier in the list of sysdeps directories, so previously fma came from there). Tested for x86_64, and tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by the patch. * sysdeps/ieee754/dbl-64/s_fma.c: Include . (fma): Define using libm_alias_double. * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file. * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include . (fmal): Do not define as compat symbol here. * sysdeps/alpha/fpu/s_fma.c: New file. --- sysdeps/ieee754/dbl-64/s_fma.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sysdeps/ieee754/dbl-64/s_fma.c') diff --git a/sysdeps/ieee754/dbl-64/s_fma.c b/sysdeps/ieee754/dbl-64/s_fma.c index 68c8515fb1..3a5a8858ce 100644 --- a/sysdeps/ieee754/dbl-64/s_fma.c +++ b/sysdeps/ieee754/dbl-64/s_fma.c @@ -22,6 +22,7 @@ #include #include #include +#include #include /* This implementation uses rounding to odd to avoid problems with @@ -292,10 +293,5 @@ __fma (double x, double y, double z) } } #ifndef __fma -weak_alias (__fma, fma) -#endif - -#ifdef NO_LONG_DOUBLE -strong_alias (__fma, __fmal) -weak_alias (__fmal, fmal) +libm_alias_double (__fma, fma) #endif -- cgit 1.4.1