]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Replace 8388608.0 with HALFRAD in mp code
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 21 Mar 2013 07:37:44 +0000 (13:07 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 21 Mar 2013 07:37:44 +0000 (13:07 +0530)
Minor cleanup

ChangeLog
sysdeps/ieee754/dbl-64/mpsqrt.c
sysdeps/ieee754/dbl-64/sincos32.c

index e873eede26935aaccd25ad1b87db2c54e36f4055..9a16bd2f3dcd753ab67ad677adfd1bc61770d6dc 100644 (file)
--- 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.
index 71ef5ce776094d664286371be03ab59f5197cc00..230d1f36e8cca19b5dbfb3c0a470a3ef0a63956b 100644 (file)
@@ -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;
index 3d2b2914aa117cf10c8471f3627131ef420cc9ee..954db66d6b2953ad9d0fa5052adbb16752873e55 100644 (file)
@@ -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);