diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-10-03 23:44:41 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-10-03 23:44:41 +0000 |
commit | 4699cb8b5f25827eec50f071183a4abba04f16e5 (patch) | |
tree | 47d95b965c24f9e009e6b5399f10fe3ded4c460f /sysdeps/powerpc | |
parent | bcc4e4bb316cf5a29cd1488a582700a3f33cee2b (diff) | |
download | glibc-4699cb8b5f25827eec50f071183a4abba04f16e5.zip glibc-4699cb8b5f25827eec50f071183a4abba04f16e5.tar.gz glibc-4699cb8b5f25827eec50f071183a4abba04f16e5.tar.bz2 |
Use libm_alias_double for dbl-64 logb.
This patch makes dbl-64 logb use libm_alias_double. Both the dbl-64
and dbl-64/wordsize-64 versions are changed, and the ldbl-opt version
is removed. Because of multiarch wrappers, the changed
implementations are made not to define aliases at all if __logb is
defined as a macro, as with other functions, so avoiding duplicate
compat symbols while allowing those wrappers to be simplified.
Tested for x86_64, and verified with build-many-glibcs.py that
installed stripped shared libraries are unchanged (except on alpha
where changes from using the wordsize-64 version are expected).
* sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
(logb): Define using libm_alias_double, only if [!__logb].
* sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
<libm-alias-double.h>.
(logb): Define using libm_alias_double, only if [!__logb].
* sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
(weak_alias): Do not undefine and redefine.
(strong_alias): Likewise.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
(weak_alias): Likewise.
(strong_alias): Likewise.
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c | 5 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c index 3920579..a1c13e2 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c @@ -18,11 +18,6 @@ #include <math.h> -#undef weak_alias -#define weak_alias(a, b) -#undef strong_alias -#define strong_alias(a, b) - #define __logb __logb_ppc32 #include <sysdeps/ieee754/dbl-64/s_logb.c> diff --git a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c index e428b9a..5eae7c9 100644 --- a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c +++ b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c @@ -18,11 +18,6 @@ #include <math.h> -#undef weak_alias -#define weak_alias(a, b) -#undef strong_alias -#define strong_alias(a, b) - #define __logb __logb_ppc64 #include <sysdeps/ieee754/dbl-64/s_logb.c> |