about summary refs log tree commit diff
path: root/sysdeps/aarch64/fpu/s_lroundf.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_lroundf.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_lroundf.c')
-rw-r--r--sysdeps/aarch64/fpu/s_lroundf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/aarch64/fpu/s_lroundf.c b/sysdeps/aarch64/fpu/s_lroundf.c
index baf06938be..fbf020286d 100644
--- a/sysdeps/aarch64/fpu/s_lroundf.c
+++ b/sysdeps/aarch64/fpu/s_lroundf.c
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <libm-alias-float.h>
 
 long int
 __lroundf (float x)
@@ -24,4 +25,4 @@ __lroundf (float x)
   return __builtin_lroundf (x);
 }
 
-weak_alias (__lroundf, lroundf)
+libm_alias_float (__lround, lround)