about summary refs log tree commit diff
path: root/sysdeps/s390
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-11-28 17:34:13 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-11-28 17:34:13 +0000
commit313ba4630f5f891af22bea9bdf9d9f3c88e49aee (patch)
treecb99d4ef9c6052570ddd664a6090f90c8dce8e3f /sysdeps/s390
parent6940bd966b8b5cf26661c32eae88135143713ba6 (diff)
downloadglibc-313ba4630f5f891af22bea9bdf9d9f3c88e49aee.tar.gz
glibc-313ba4630f5f891af22bea9bdf9d9f3c88e49aee.tar.xz
glibc-313ba4630f5f891af22bea9bdf9d9f3c88e49aee.zip
Use libm_alias_float for s390.
Continuing the preparation for additional _FloatN / _FloatNx function
aliases, this patch makes an s390 libm function implementation use
libm_alias_float to define function aliases.

Tested with build-many-glibcs.py for s390-linux-gnu and
s390x-linux-gnu that installed stripped shared libraries are unchanged
by the patch.

	* sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
	[!__fmaf] (fmaf): Define using libm_alias_float.
Diffstat (limited to 'sysdeps/s390')
-rw-r--r--sysdeps/s390/fpu/s_fmaf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/s390/fpu/s_fmaf.c b/sysdeps/s390/fpu/s_fmaf.c
index c56cc040e8..4ad7257887 100644
--- a/sysdeps/s390/fpu/s_fmaf.c
+++ b/sysdeps/s390/fpu/s_fmaf.c
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <libm-alias-float.h>
 
 float
 __fmaf (float x, float y, float z)
@@ -27,5 +28,5 @@ __fmaf (float x, float y, float z)
   return r;
 }
 #ifndef __fmaf
-weak_alias (__fmaf, fmaf)
+libm_alias_float (__fma, fma)
 #endif