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.17-451-gb33d4ce


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  b33d4ce4a2a05ca8a29798f410657e43722193ff (commit)
      from  defa03577f2dfeca7bc859426954a22b702ada43 (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=b33d4ce4a2a05ca8a29798f410657e43722193ff

commit b33d4ce4a2a05ca8a29798f410657e43722193ff
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Thu Mar 21 13:07:44 2013 +0530

    Replace 8388608.0 with HALFRAD in mp code
    
    Minor cleanup

diff --git a/ChangeLog b/ChangeLog
index e873eed..9a16bd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
+	* sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
+
 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
 
 	* aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
diff --git a/sysdeps/ieee754/dbl-64/mpsqrt.c b/sysdeps/ieee754/dbl-64/mpsqrt.c
index 71ef5ce..230d1f3 100644
--- a/sysdeps/ieee754/dbl-64/mpsqrt.c
+++ b/sysdeps/ieee754/dbl-64/mpsqrt.c
@@ -53,8 +53,8 @@ __mpsqrt (mp_no *x, mp_no *y, int p)
 {
   int i, m, ey;
   double dx, dy;
-  static const mp_no mphalf = {0, {1.0, 8388608.0 /* 2^23 */}};
-  static const mp_no mp3halfs = {1, {1.0, 1.0, 8388608.0 /* 2^23 */}};
+  static const mp_no mphalf = {0, {1.0, HALFRAD}};
+  static const mp_no mp3halfs = {1, {1.0, 1.0, HALFRAD}};
   mp_no mpxn, mpz, mpu, mpt1, mpt2;
 
   ey = EX / 2;
diff --git a/sysdeps/ieee754/dbl-64/sincos32.c b/sysdeps/ieee754/dbl-64/sincos32.c
index 3d2b291..954db66 100644
--- a/sysdeps/ieee754/dbl-64/sincos32.c
+++ b/sysdeps/ieee754/dbl-64/sincos32.c
@@ -262,7 +262,7 @@ __mpranred(double x, mp_no *y, int p)
     for (i=1;i<=p-c.e;i++) c.d[i]=c.d[i+c.e];
     for (i=p+1-c.e;i<=p;i++) c.d[i]=0;
     c.e=0;
-    if (c.d[1] >=  8388608.0)
+    if (c.d[1] >= HALFRAD)
     { t +=1.0;
       __sub(&c,&mpone,&b,p);
       __mul(&b,&hp,y,p);

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

Summary of changes:
 ChangeLog                         |    5 +++++
 sysdeps/ieee754/dbl-64/mpsqrt.c   |    4 ++--
 sysdeps/ieee754/dbl-64/sincos32.c |    2 +-
 3 files changed, 8 insertions(+), 3 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]