diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-11-27 23:54:32 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-11-27 23:54:32 +0000 |
commit | f07d2ec8c02cf378d40122222b0b1f7ed263457f (patch) | |
tree | 7063429d70d2d006dc78ddf724dc36d9307ac431 /sysdeps/aarch64/fpu/s_round.c | |
parent | 4bab02240e9076b49702b30bb8a1d23a0afe58cb (diff) | |
download | glibc-f07d2ec8c02cf378d40122222b0b1f7ed263457f.tar glibc-f07d2ec8c02cf378d40122222b0b1f7ed263457f.tar.gz glibc-f07d2ec8c02cf378d40122222b0b1f7ed263457f.tar.bz2 glibc-f07d2ec8c02cf378d40122222b0b1f7ed263457f.zip |
Use libm_alias_double for aarch64.
Continuing the preparation for additional _FloatN / _FloatNx function
aliases, this patch makes aarch64 libm function implementations use
libm_alias_double to define function aliases.
Tested with build-many-glibcs.py for aarch64-linux-gnu that installed
stripped shared libraries are unchanged by the patch.
* sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
(ceil): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
(floor): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
(fma): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
(fmax): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
(fmin): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
(llrint): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
(llround): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
(lrint): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
(lround): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
(nearbyint): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
(rint): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
(round): Define using libm_alias_double.
* sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
(trunc): Define using libm_alias_double.
Diffstat (limited to 'sysdeps/aarch64/fpu/s_round.c')
-rw-r--r-- | sysdeps/aarch64/fpu/s_round.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/aarch64/fpu/s_round.c b/sysdeps/aarch64/fpu/s_round.c index a34fca1196..1937a7ad09 100644 --- a/sysdeps/aarch64/fpu/s_round.c +++ b/sysdeps/aarch64/fpu/s_round.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <libm-alias-double.h> double __round (double x) @@ -24,4 +25,4 @@ __round (double x) return __builtin_round (x); } -weak_alias (__round, round) +libm_alias_double (__round, round) |