]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2015-05-28 Wilco Dijkstra <wdijkstr@arm.com>
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 28 May 2015 10:42:55 +0000 (11:42 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Thu, 28 May 2015 10:42:55 +0000 (11:42 +0100)
        * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
        * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.

ChangeLog
sysdeps/ieee754/dbl-64/s_fabs.c
sysdeps/ieee754/flt-32/s_fabsf.c

index 52c29bc10f5cbdc7aace3312826ce2e06ee80bc4..e3a6bacb1a294d3a4e5ba2b42aba44e72aa1af38 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
 
        * stdlib/monetary.h: Fix comment.
index c82c4210ed96785d721c9e1e609a4acfbd7f3bfa..73c09a269ec47b73a51ab7c9c012890f29cc5302 100644 (file)
@@ -19,15 +19,11 @@ static char rcsid[] = "$NetBSD: s_fabs.c,v 1.7 1995/05/10 20:47:13 jtc Exp $";
  */
 
 #include <math.h>
-#include <math_private.h>
 
 double
 __fabs (double x)
 {
-  u_int32_t high;
-  GET_HIGH_WORD (high, x);
-  SET_HIGH_WORD (x, high & 0x7fffffff);
-  return x;
+  return __builtin_fabs (x);
 }
 weak_alias (__fabs, fabs)
 #ifdef NO_LONG_DOUBLE
index c58aede6debfa2646292762f9d4bd68ef28c01b4..297abe64bd663e8dde1194b24126ea3941c1da3e 100644 (file)
@@ -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)