]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use libm_alias_* in soft-fp.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 11 Oct 2017 00:03:46 +0000 (00:03 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 11 Oct 2017 00:03:46 +0000 (00:03 +0000)
This patch makes the soft-fp implementations of fma functions use the
libm_alias_* macros.

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by the patch.

* soft-fp/fmadf4.c: Include <libm-alias-double.h>.
[!__fma] (fma): Define using libm_alias_double.
* soft-fp/fmasf4.c: Include <libm-alias-float.h>.
[!__fmaf] (fmaf): Define using libm_alias_float.
* soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
(fmal): Define using libm_alias_ldouble.

ChangeLog
soft-fp/fmadf4.c
soft-fp/fmasf4.c
soft-fp/fmatf4.c

index a3c6b0ab1961281b30d2870b0ee04124d4289886..870d29d772e667b6643b46e0dd803e1a752d87a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-10-11  Joseph Myers  <joseph@codesourcery.com>
+
+       * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
+       [!__fma] (fma): Define using libm_alias_double.
+       * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
+       [!__fmaf] (fmaf): Define using libm_alias_float.
+       * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
+       (fmal): Define using libm_alias_ldouble.
+
 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
index 74e2360eb7cd8e5a3c44ace1d7d1922a713b744f..313547d061f4f6597b2f1de097b53cafdd750578 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <math.h>
 #include <libc-diag.h>
+#include <libm-alias-double.h>
 
 /* R_e is not set in cases where it is not used in packing, but the
    compiler does not see that it is set in all cases where it is
@@ -63,10 +64,5 @@ __fma (double a, double b, double c)
 DIAG_POP_NEEDS_COMMENT;
 
 #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
index 2d3120eda952087193e91e5bb952a0b5ea534311..295223da50b6dd64541725aa0402154950e96aa0 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <math.h>
 #include <libc-diag.h>
+#include <libm-alias-float.h>
 
 /* R_e is not set in cases where it is not used in packing, but the
    compiler does not see that it is set in all cases where it is
@@ -63,5 +64,5 @@ __fmaf (float a, float b, float c)
 DIAG_POP_NEEDS_COMMENT;
 
 #ifndef __fmaf
-weak_alias (__fmaf, fmaf)
+libm_alias_float (__fma, fma)
 #endif
index 553a7ad3f8fbdf4523da73f519cf908d42bcf2a7..79be52c4f11d7c40d8f4035c808f4e19c4aa8880 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <math.h>
 #include <libc-diag.h>
+#include <libm-alias-ldouble.h>
 
 /* R_e is not set in cases where it is not used in packing, but the
    compiler does not see that it is set in all cases where it is
@@ -62,4 +63,4 @@ __fmal (long double a, long double b, long double c)
 }
 DIAG_POP_NEEDS_COMMENT;
 
-weak_alias (__fmal, fmal)
+libm_alias_ldouble (__fma, fma)