This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.21-411-gbe2e25b


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  be2e25bbd78f9fdf27bed254d02915d019c5b363 (commit)
      from  d28311a19d7fd09f96c4b5c9a1dbf65b88dc3282 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=be2e25bbd78f9fdf27bed254d02915d019c5b363

commit be2e25bbd78f9fdf27bed254d02915d019c5b363
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Thu May 28 11:42:55 2015 +0100

    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.

diff --git a/ChangeLog b/ChangeLog
index 52c29bc..e3a6bac 100644
--- 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.
diff --git a/sysdeps/ieee754/dbl-64/s_fabs.c b/sysdeps/ieee754/dbl-64/s_fabs.c
index c82c421..73c09a2 100644
--- a/sysdeps/ieee754/dbl-64/s_fabs.c
+++ b/sysdeps/ieee754/dbl-64/s_fabs.c
@@ -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
diff --git a/sysdeps/ieee754/flt-32/s_fabsf.c b/sysdeps/ieee754/flt-32/s_fabsf.c
index c58aede..297abe6 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)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                        |    5 +++++
 sysdeps/ieee754/dbl-64/s_fabs.c  |    6 +-----
 sysdeps/ieee754/flt-32/s_fabsf.c |    6 +-----
 3 files changed, 7 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]