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.22-266-g020167a


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  020167a4ce53f7dd8d5b1912a42163bd1077e6c5 (commit)
      from  8df4e219e43a4a257d0759b54fef8c488e2f282e (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=020167a4ce53f7dd8d5b1912a42163bd1077e6c5

commit 020167a4ce53f7dd8d5b1912a42163bd1077e6c5
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Fri Sep 18 16:39:08 2015 +0100

    Use the GCC builtin functions for the non-inlined signbit implementations.
    
    2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
    
            * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
            Use __builtin_signbit.
            * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
            Use __builtin_signbitf.
            * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
            Use __builtin_signbitl.
            * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
            * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.

diff --git a/ChangeLog b/ChangeLog
index c6216c9..72605d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
 
+	* sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
+	Use __builtin_signbit.
+	* sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
+	Use __builtin_signbitf.
+	* sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
+	Use __builtin_signbitl.
+	* sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
+	* sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
+
+2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
+
 	[BZ #15367]
 	[BZ #17441]
 
diff --git a/sysdeps/ieee754/dbl-64/s_signbit.c b/sysdeps/ieee754/dbl-64/s_signbit.c
index 764f11a..91797ee 100644
--- a/sysdeps/ieee754/dbl-64/s_signbit.c
+++ b/sysdeps/ieee754/dbl-64/s_signbit.c
@@ -19,13 +19,8 @@
 
 #include <math.h>
 
-#include <math_private.h>
-
 int
 __signbit (double x)
 {
-  int32_t hx;
-
-  GET_HIGH_WORD (hx, x);
-  return hx & 0x80000000;
+  return __builtin_signbit (x);
 }
diff --git a/sysdeps/ieee754/flt-32/s_signbitf.c b/sysdeps/ieee754/flt-32/s_signbitf.c
index 169820e..034c175 100644
--- a/sysdeps/ieee754/flt-32/s_signbitf.c
+++ b/sysdeps/ieee754/flt-32/s_signbitf.c
@@ -19,13 +19,8 @@
 
 #include <math.h>
 
-#include <math_private.h>
-
 int
 __signbitf (float x)
 {
-  int32_t hx;
-
-  GET_FLOAT_WORD (hx, x);
-  return hx & 0x80000000;
+  return __builtin_signbitf (x);
 }
diff --git a/sysdeps/ieee754/ldbl-128/s_signbitl.c b/sysdeps/ieee754/ldbl-128/s_signbitl.c
index acfe859..ea689a6 100644
--- a/sysdeps/ieee754/ldbl-128/s_signbitl.c
+++ b/sysdeps/ieee754/ldbl-128/s_signbitl.c
@@ -19,13 +19,8 @@
 
 #include <math.h>
 
-#include <math_private.h>
-
 int
 __signbitl (long double x)
 {
-  int64_t e;
-
-  GET_LDOUBLE_MSW64 (e, x);
-  return e < 0;
+  return __builtin_signbitl (x);
 }
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_signbitl.c b/sysdeps/ieee754/ldbl-128ibm/s_signbitl.c
index e95ad55..5e2bd90 100644
--- a/sysdeps/ieee754/ldbl-128ibm/s_signbitl.c
+++ b/sysdeps/ieee754/ldbl-128ibm/s_signbitl.c
@@ -18,18 +18,12 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
-#include <math_private.h>
 #include <math_ldbl_opt.h>
 
 int
 ___signbitl (long double x)
 {
-  int64_t e;
-  double xhi;
-
-  xhi = ldbl_high (x);
-  EXTRACT_WORDS64 (e, xhi);
-  return e < 0;
+  return __builtin_signbitl (x);
 }
 #if IS_IN (libm)
 long_double_symbol (libm, ___signbitl, __signbitl);
diff --git a/sysdeps/ieee754/ldbl-96/s_signbitl.c b/sysdeps/ieee754/ldbl-96/s_signbitl.c
index bbe72a6..ea689a6 100644
--- a/sysdeps/ieee754/ldbl-96/s_signbitl.c
+++ b/sysdeps/ieee754/ldbl-96/s_signbitl.c
@@ -19,13 +19,8 @@
 
 #include <math.h>
 
-#include <math_private.h>
-
 int
 __signbitl (long double x)
 {
-  int32_t e;
-
-  GET_LDOUBLE_EXP (e, x);
-  return e & 0x8000;
+  return __builtin_signbitl (x);
 }

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

Summary of changes:
 ChangeLog                                |   11 +++++++++++
 sysdeps/ieee754/dbl-64/s_signbit.c       |    7 +------
 sysdeps/ieee754/flt-32/s_signbitf.c      |    7 +------
 sysdeps/ieee754/ldbl-128/s_signbitl.c    |    7 +------
 sysdeps/ieee754/ldbl-128ibm/s_signbitl.c |    8 +-------
 sysdeps/ieee754/ldbl-96/s_signbitl.c     |    7 +------
 6 files changed, 16 insertions(+), 31 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]