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.
This commit is contained in:
Joseph Myers 2017-11-28 17:34:13 +00:00
parent 6940bd966b
commit 313ba4630f
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2017-11-28 Joseph Myers <joseph@codesourcery.com>
* sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
[!__fmaf] (fmaf): Define using libm_alias_float.
* sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
[!__fma] (fma): Define using libm_alias_double.
* sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.

View File

@ -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