This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.22-642-g0a1f1e7
- From: tuliom at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 4 Jan 2016 16:57:27 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.22-642-g0a1f1e7
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 0a1f1e78fbdfaf2c01e9c2368023b2533e7136cf (commit)
from 1979f3c1ad7a6ae30de5c9cd162729b29488cece (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=0a1f1e78fbdfaf2c01e9c2368023b2533e7136cf
commit 0a1f1e78fbdfaf2c01e9c2368023b2533e7136cf
Author: Anton Blanchard <anton@samba.org>
Date: Mon Jan 4 13:28:52 2016 -0200
Eliminate redundant sign extensions in pow()
When looking at the code generated for pow() on ppc64 I noticed quite
a few sign extensions. Making the array indices unsigned reduces the
number of sign extensions from 24 to 7.
Tested for powerpc64le and x86_64.
diff --git a/ChangeLog b/ChangeLog
index bea73e3..de8a1bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-01-04 Anton Blanchard <anton@samba.org>
+
+ * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
+ for array indices.
+ * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
+
2016-01-04 Joseph Myers <joseph@codesourcery.com>
* NEWS: Update copyright dates.
diff --git a/sysdeps/ieee754/dbl-64/e_pow.c b/sysdeps/ieee754/dbl-64/e_pow.c
index 2ff2bb6..663fa39 100644
--- a/sysdeps/ieee754/dbl-64/e_pow.c
+++ b/sysdeps/ieee754/dbl-64/e_pow.c
@@ -245,7 +245,8 @@ static double
SECTION
log1 (double x, double *delta, double *error)
{
- int i, j, m;
+ unsigned int i, j;
+ int m;
double uu, vv, eps, nx, e, e1, e2, t, t1, t2, res, add = 0;
mynumber u, v;
#ifdef BIG_ENDI
@@ -344,7 +345,8 @@ static double
SECTION
my_log2 (double x, double *delta, double *error)
{
- int i, j, m;
+ unsigned int i, j;
+ int m;
double uu, vv, eps, nx, e, e1, e2, t, t1, t2, res, add = 0;
double ou1, ou2, lu1, lu2, ov, lv1, lv2, a, a1, a2;
double y, yy, z, zz, j1, j2, j7, j8;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
sysdeps/ieee754/dbl-64/e_pow.c | 6 ++++--
2 files changed, 10 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources