aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/m68k/coldfire/fpu/s_lrintf.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-11-30 23:52:35 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-11-30 23:52:35 +0000
commitf938b397dd17265a1a005cd5786f197de1013e74 (patch)
tree3fea3759e2cbb4776e9b23bc6baf786286ed64fd /sysdeps/m68k/coldfire/fpu/s_lrintf.c
parent2251fad0254299701f4fb1c65ef8c8b69d0cf00e (diff)
downloadglibc-f938b397dd17265a1a005cd5786f197de1013e74.tar
glibc-f938b397dd17265a1a005cd5786f197de1013e74.tar.gz
glibc-f938b397dd17265a1a005cd5786f197de1013e74.tar.bz2
glibc-f938b397dd17265a1a005cd5786f197de1013e74.zip
Use libm_alias_float for coldfire.
Continuing the preparation for additional _FloatN / _FloatNx function aliases, this patch makes coldfire libm function implementations use libm_alias_float to define function aliases. Untested, given the currently broken state of GCC for coldfire. * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include <libm-alias-float.h>. (fabsf): Define using libm_alias_float. * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include <libm-alias-float.h>. (lrintf): Define using libm_alias_float. * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include <libm-alias-float.h>. (rintf): Define using libm_alias_float.
Diffstat (limited to 'sysdeps/m68k/coldfire/fpu/s_lrintf.c')
-rw-r--r--sysdeps/m68k/coldfire/fpu/s_lrintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/m68k/coldfire/fpu/s_lrintf.c b/sysdeps/m68k/coldfire/fpu/s_lrintf.c
index 7f5c9d04f2..0ec101499f 100644
--- a/sysdeps/m68k/coldfire/fpu/s_lrintf.c
+++ b/sysdeps/m68k/coldfire/fpu/s_lrintf.c
@@ -15,6 +15,8 @@
License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */
+#include <libm-alias-float.h>
+
long int
__lrintf (float x)
{
@@ -22,4 +24,4 @@ __lrintf (float x)
asm ("fmove.l %1,%0" : "=dm" (result) : "f" (x));
return result;
}
-weak_alias (__lrintf, lrintf)
+libm_alias_float (__lrint, lrint)