Use libm_alias_float128 more in sysdeps/ieee754/float128.

This patch uses libm_alias_float128 in place of weak_alias more in
sysdeps/ieee754/float128, in preparation for defining _Float64x
aliases when appropriate.

Tested for x86_64, and for powerpc64le (compilation only) with
build-many-glibcs.py in conjunction with _Float64x support patches.

	* sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
	using libm_alias_float128.
	* sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
	Likewise.
	* sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
	Likewise.
	* sysdeps/ieee754/float128/s_setpayloadsigf128.c
	(setpayloadsigf128): Likewise.
	* sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
	Likewise.
	* sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
	Likewise.
This commit is contained in:
Joseph Myers 2017-11-24 23:53:54 +00:00
parent 9ae6d171bc
commit de61465c04
7 changed files with 19 additions and 6 deletions

View File

@ -1,5 +1,18 @@
2017-11-24 Joseph Myers <joseph@codesourcery.com>
* sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
using libm_alias_float128.
* sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
Likewise.
* sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
Likewise.
* sysdeps/ieee754/float128/s_setpayloadsigf128.c
(setpayloadsigf128): Likewise.
* sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
Likewise.
* sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
Likewise.
* sysdeps/powerpc/powerpc64le/Makefile ($(foreach
suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
-mfloat128 to CFLAGS.

View File

@ -3,4 +3,4 @@
#define FUNC __fromfpf128
#include <float128_private.h>
#include "../ldbl-128/s_fromfpl_main.c"
weak_alias (__fromfpf128, fromfpf128)
libm_alias_float128 (__fromfp, fromfp)

View File

@ -3,4 +3,4 @@
#define FUNC __fromfpxf128
#include <float128_private.h>
#include "../ldbl-128/s_fromfpl_main.c"
weak_alias (__fromfpxf128, fromfpxf128)
libm_alias_float128 (__fromfpx, fromfpx)

View File

@ -2,4 +2,4 @@
#define SIG 0
#define FUNC __setpayloadf128
#include "../ldbl-128/s_setpayloadl_main.c"
weak_alias (__setpayloadf128, setpayloadf128)
libm_alias_float128 (__setpayload, setpayload)

View File

@ -2,4 +2,4 @@
#define SIG 1
#define FUNC __setpayloadsigf128
#include "../ldbl-128/s_setpayloadl_main.c"
weak_alias (__setpayloadsigf128, setpayloadsigf128)
libm_alias_float128 (__setpayloadsig, setpayloadsig)

View File

@ -3,4 +3,4 @@
#define FUNC __ufromfpf128
#include <float128_private.h>
#include "../ldbl-128/s_fromfpl_main.c"
weak_alias (__ufromfpf128, ufromfpf128)
libm_alias_float128 (__ufromfp, ufromfp)

View File

@ -3,4 +3,4 @@
#define FUNC __ufromfpxf128
#include <float128_private.h>
#include "../ldbl-128/s_fromfpl_main.c"
weak_alias (__ufromfpxf128, ufromfpxf128)
libm_alias_float128 (__ufromfpx, ufromfpx)