about summary refs log tree commit diff
path: root/sysdeps/aarch64/fpu/s_lrintf.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-11-28 00:55:42 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-11-28 00:55:42 +0000
commit15ff490014c4953f4bbf06b80f61bfa0ebb33187 (patch)
tree80a356f4129d54b08dd79dfdcc6955fb49c25ca4 /sysdeps/aarch64/fpu/s_lrintf.c
parent5de606387b60d57399e61bdb78d6697139ceb445 (diff)
downloadglibc-15ff490014c4953f4bbf06b80f61bfa0ebb33187.tar.gz
glibc-15ff490014c4953f4bbf06b80f61bfa0ebb33187.tar.xz
glibc-15ff490014c4953f4bbf06b80f61bfa0ebb33187.zip
Use libm_alias_float for aarch64.
Continuing the preparation for additional _FloatN / _FloatNx function
aliases, this patch makes aarch64 libm function implementations use
libm_alias_float 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_ceilf.c: Include <libm-alias-float.h>.
	(ceilf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
	(floorf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
	(fmaf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
	(fmaxf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
	(fminf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
	(llrintf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
	(lrintf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
	(lroundf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_nearbyintf.c: Include
	<libm-alias-float.h>.
	(nearbyintf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
	(rintf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
	(roundf): Define using libm_alias_float.
	* sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
	(truncf): Define using libm_alias_float.
Diffstat (limited to 'sysdeps/aarch64/fpu/s_lrintf.c')
-rw-r--r--sysdeps/aarch64/fpu/s_lrintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/aarch64/fpu/s_lrintf.c b/sysdeps/aarch64/fpu/s_lrintf.c
index 5b6a426937..3ce7c91b1f 100644
--- a/sysdeps/aarch64/fpu/s_lrintf.c
+++ b/sysdeps/aarch64/fpu/s_lrintf.c
@@ -18,6 +18,7 @@
 
 #include <math.h>
 #include <math_private.h>
+#include <libm-alias-float.h>
 
 long int
 __lrintf (float x)
@@ -31,4 +32,4 @@ __lrintf (float x)
   return r;
 }
 
-weak_alias (__lrintf, lrintf)
+libm_alias_float (__lrint, lrint)