]> sourceware.org Git - glibc.git/commitdiff
Use libm_alias_double in ldbl-128, ldbl-96 fma.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 6 Oct 2017 20:23:58 +0000 (20:23 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 6 Oct 2017 20:23:58 +0000 (20:23 +0000)
This patch makes the ldbl-128 and ldbl-96 implementations of fma use
libm_alias_double.

Tested for x86_64, and tested with build-many-glibcs.py that installed
stripped shared libraries are unchanged by the patch.

* sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
[!__fma] (fma): Define using libm_alias_double.
* sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
[!__fma] (fma): Define using libm_alias_double.

ChangeLog
sysdeps/ieee754/ldbl-128/s_fma.c
sysdeps/ieee754/ldbl-96/s_fma.c

index 6aaf10d4a12177066c3a04e486ee44833019cd27..deec63d1a8bd7168a6631c8a7fd443dc53968139 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
+       [!__fma] (fma): Define using libm_alias_double.
+       * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
+       [!__fma] (fma): Define using libm_alias_double.
+
        * sysdeps/ieee754/float128/float128_private.h: Include
        <libm-alias-ldouble.h> and <libm-alias-float128.h>.
        (libm_alias_ldouble_r): Undefine and redefine.
index 13da2904f4a8f95034b2efc7457c97bcdc2ebeec..0f7ecabdbd339af7068fafe030b75dc24f0c34dc 100644 (file)
@@ -20,6 +20,7 @@
 #include <math.h>
 #include <fenv.h>
 #include <ieee754.h>
+#include <libm-alias-double.h>
 
 /* This implementation relies on long double being more than twice as
    precise as double and uses rounding to odd in order to avoid problems
@@ -51,5 +52,5 @@ __fma (double x, double y, double z)
   return (double) u.d;
 }
 #ifndef __fma
-weak_alias (__fma, fma)
+libm_alias_double (__fma, fma)
 #endif
index 370592074e689d6f33d9b4a1172ef2e088653558..e573c711ef98063849f15c760d7a0138c47ac0e6 100644 (file)
@@ -22,6 +22,7 @@
 #include <fenv.h>
 #include <ieee754.h>
 #include <math_private.h>
+#include <libm-alias-double.h>
 
 /* This implementation uses rounding to odd to avoid problems with
    double rounding.  See a paper by Boldo and Melquiond:
@@ -97,5 +98,5 @@ __fma (double x, double y, double z)
   return u.d;
 }
 #ifndef __fma
-weak_alias (__fma, fma)
+libm_alias_double (__fma, fma)
 #endif
This page took 0.077568 seconds and 5 git commands to generate.