summary refs log tree commit diff
path: root/sysdeps/aarch64/fpu/s_lround.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-11-27 23:54:32 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-11-27 23:54:32 +0000
commitf07d2ec8c02cf378d40122222b0b1f7ed263457f (patch)
tree7063429d70d2d006dc78ddf724dc36d9307ac431 /sysdeps/aarch64/fpu/s_lround.c
parent4bab02240e9076b49702b30bb8a1d23a0afe58cb (diff)
downloadglibc-f07d2ec8c02cf378d40122222b0b1f7ed263457f.tar.gz
glibc-f07d2ec8c02cf378d40122222b0b1f7ed263457f.tar.xz
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_lround.c')
-rw-r--r--sysdeps/aarch64/fpu/s_lround.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/aarch64/fpu/s_lround.c b/sysdeps/aarch64/fpu/s_lround.c
index 90c3163e8e..2afadd959f 100644
--- a/sysdeps/aarch64/fpu/s_lround.c
+++ b/sysdeps/aarch64/fpu/s_lround.c
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <libm-alias-double.h>
 
 long int
 __lround (double x)
@@ -24,4 +25,4 @@ __lround (double x)
   return __builtin_lround (x);
  }
 
-weak_alias (__lround, lround)
+libm_alias_double (__lround, lround)