diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-11-24 23:53:54 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-11-24 23:53:54 +0000 |
commit | de61465c04d36dadce2f4e7f78ebbe50bae6a21e (patch) | |
tree | 18bd679e3f79e7f2201cb0318117ae6458c0c44f | |
parent | 9ae6d171bcaac211248f98a38dfde0b8cb9a1fbb (diff) | |
download | glibc-de61465c04d36dadce2f4e7f78ebbe50bae6a21e.zip glibc-de61465c04d36dadce2f4e7f78ebbe50bae6a21e.tar.gz glibc-de61465c04d36dadce2f4e7f78ebbe50bae6a21e.tar.bz2 |
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.
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | sysdeps/ieee754/float128/s_fromfpf128.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/float128/s_fromfpxf128.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/float128/s_setpayloadf128.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/float128/s_setpayloadsigf128.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/float128/s_ufromfpf128.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/float128/s_ufromfpxf128.c | 2 |
7 files changed, 19 insertions, 6 deletions
@@ -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. diff --git a/sysdeps/ieee754/float128/s_fromfpf128.c b/sysdeps/ieee754/float128/s_fromfpf128.c index a7393b3..86adf38 100644 --- a/sysdeps/ieee754/float128/s_fromfpf128.c +++ b/sysdeps/ieee754/float128/s_fromfpf128.c @@ -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) diff --git a/sysdeps/ieee754/float128/s_fromfpxf128.c b/sysdeps/ieee754/float128/s_fromfpxf128.c index ef05f4b..c564223 100644 --- a/sysdeps/ieee754/float128/s_fromfpxf128.c +++ b/sysdeps/ieee754/float128/s_fromfpxf128.c @@ -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) diff --git a/sysdeps/ieee754/float128/s_setpayloadf128.c b/sysdeps/ieee754/float128/s_setpayloadf128.c index 526fc47..65f0961 100644 --- a/sysdeps/ieee754/float128/s_setpayloadf128.c +++ b/sysdeps/ieee754/float128/s_setpayloadf128.c @@ -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) diff --git a/sysdeps/ieee754/float128/s_setpayloadsigf128.c b/sysdeps/ieee754/float128/s_setpayloadsigf128.c index e817205..bd3ffb6 100644 --- a/sysdeps/ieee754/float128/s_setpayloadsigf128.c +++ b/sysdeps/ieee754/float128/s_setpayloadsigf128.c @@ -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) diff --git a/sysdeps/ieee754/float128/s_ufromfpf128.c b/sysdeps/ieee754/float128/s_ufromfpf128.c index e8a5ffe..0e6521f 100644 --- a/sysdeps/ieee754/float128/s_ufromfpf128.c +++ b/sysdeps/ieee754/float128/s_ufromfpf128.c @@ -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) diff --git a/sysdeps/ieee754/float128/s_ufromfpxf128.c b/sysdeps/ieee754/float128/s_ufromfpxf128.c index c5c6966..cd192b7 100644 --- a/sysdeps/ieee754/float128/s_ufromfpxf128.c +++ b/sysdeps/ieee754/float128/s_ufromfpxf128.c @@ -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) |