about summary refs log tree commit diff
path: root/sysdeps/ieee754/flt-32
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2015-05-28 11:42:55 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2015-05-28 11:42:55 +0100
commitbe2e25bbd78f9fdf27bed254d02915d019c5b363 (patch)
tree61b21c40e238d79197eabfc7e51fb7ee37ebf3cb /sysdeps/ieee754/flt-32
parentd28311a19d7fd09f96c4b5c9a1dbf65b88dc3282 (diff)
downloadglibc-be2e25bbd78f9fdf27bed254d02915d019c5b363.tar.gz
glibc-be2e25bbd78f9fdf27bed254d02915d019c5b363.tar.xz
glibc-be2e25bbd78f9fdf27bed254d02915d019c5b363.zip
2015-05-28 Wilco Dijkstra <wdijkstr@arm.com>
        * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
        * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
Diffstat (limited to 'sysdeps/ieee754/flt-32')
-rw-r--r--sysdeps/ieee754/flt-32/s_fabsf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/ieee754/flt-32/s_fabsf.c b/sysdeps/ieee754/flt-32/s_fabsf.c
index c58aede6de..297abe64bd 100644
--- a/sysdeps/ieee754/flt-32/s_fabsf.c
+++ b/sysdeps/ieee754/flt-32/s_fabsf.c
@@ -22,13 +22,9 @@ static char rcsid[] = "$NetBSD: s_fabsf.c,v 1.4 1995/05/10 20:47:15 jtc Exp $";
  */
 
 #include <math.h>
-#include <math_private.h>
 
 float __fabsf(float x)
 {
-	u_int32_t ix;
-	GET_FLOAT_WORD(ix,x);
-	SET_FLOAT_WORD(x,ix&0x7fffffff);
-        return x;
+  return __builtin_fabsf (x);
 }
 weak_alias (__fabsf, fabsf)