[Gmp-commit] /var/hg/gmp: 3 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Thu Mar 30 16:23:45 UTC 2017


details:   /var/hg/gmp/rev/f0b28dad121d
changeset: 17338:f0b28dad121d
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Mar 30 18:17:02 2017 +0200
description:
Spacing cleanup.

details:   /var/hg/gmp/rev/8ae44a7cd9c6
changeset: 17339:8ae44a7cd9c6
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Mar 30 18:21:36 2017 +0200
description:
Fix comments.

details:   /var/hg/gmp/rev/61eb6b13cf77
changeset: 17340:61eb6b13cf77
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Mar 30 18:22:38 2017 +0200
description:
Remove a redundant semicolon.

diffstat:

 mpn/generic/mulmod_bnm1.c |   2 +-
 mpn/generic/powm.c        |   2 +-
 mpn/generic/rootrem.c     |   2 +-
 mpn/generic/sqrmod_bnm1.c |   2 +-
 mpn/generic/sqrtrem.c     |  12 ++++++------
 mpn/generic/toom52_mul.c  |   2 +-
 6 files changed, 11 insertions(+), 11 deletions(-)

diffs (90 lines):

diff -r 8330de843689 -r 61eb6b13cf77 mpn/generic/mulmod_bnm1.c
--- a/mpn/generic/mulmod_bnm1.c	Mon Mar 27 18:46:06 2017 +0200
+++ b/mpn/generic/mulmod_bnm1.c	Thu Mar 30 18:22:38 2017 +0200
@@ -76,7 +76,7 @@
   ASSERT (tp[2*rn] < GMP_NUMB_MAX);
   cy = tp[2*rn] + mpn_sub_n (rp, tp, tp+rn, rn);
   rp[rn] = 0;
-  MPN_INCR_U (rp, rn+1, cy );
+  MPN_INCR_U (rp, rn+1, cy);
 }
 
 
diff -r 8330de843689 -r 61eb6b13cf77 mpn/generic/powm.c
--- a/mpn/generic/powm.c	Mon Mar 27 18:46:06 2017 +0200
+++ b/mpn/generic/powm.c	Thu Mar 30 18:22:38 2017 +0200
@@ -129,7 +129,7 @@
       nbits_in_r = GMP_NUMB_BITS - bi;	/* number of bits now in r */
       if (nbits_in_r < nbits)		/* did we get enough bits? */
 	r += p[i + 1] << nbits_in_r;	/* prepend bits from higher word */
-      return r & (((mp_limb_t ) 1 << nbits) - 1);
+      return r & (((mp_limb_t) 1 << nbits) - 1);
     }
 }
 
diff -r 8330de843689 -r 61eb6b13cf77 mpn/generic/rootrem.c
--- a/mpn/generic/rootrem.c	Mon Mar 27 18:46:06 2017 +0200
+++ b/mpn/generic/rootrem.c	Thu Mar 30 18:22:38 2017 +0200
@@ -478,7 +478,7 @@
 
       /* 8: current buffer: {sp,sn} */
 
-    };
+    }
 
   /* otherwise we have rn > 0, thus the return value is ok */
   if (!approx || sp[0] <= CNST_LIMB (1))
diff -r 8330de843689 -r 61eb6b13cf77 mpn/generic/sqrmod_bnm1.c
--- a/mpn/generic/sqrmod_bnm1.c	Mon Mar 27 18:46:06 2017 +0200
+++ b/mpn/generic/sqrmod_bnm1.c	Thu Mar 30 18:22:38 2017 +0200
@@ -74,7 +74,7 @@
   ASSERT (tp[2*rn] < GMP_NUMB_MAX);
   cy = tp[2*rn] + mpn_sub_n (rp, tp, tp+rn, rn);
   rp[rn] = 0;
-  MPN_INCR_U (rp, rn+1, cy );
+  MPN_INCR_U (rp, rn+1, cy);
 }
 
 
diff -r 8330de843689 -r 61eb6b13cf77 mpn/generic/sqrtrem.c
--- a/mpn/generic/sqrtrem.c	Mon Mar 27 18:46:06 2017 +0200
+++ b/mpn/generic/sqrtrem.c	Thu Mar 30 18:22:38 2017 +0200
@@ -3,12 +3,12 @@
    Contributed to the GNU project by Paul Zimmermann (most code),
    Torbjorn Granlund (mpn_sqrtrem1) and Marco Bodrato (mpn_dc_sqrt).
 
-   THE FUNCTIONS IN THIS FILE EXCEPT mpn_sqrtrem ARE INTERNAL WITH A
-   MUTABLE INTERFACE.  IT IS ONLY SAFE TO REACH THEM THROUGH DOCUMENTED
-   INTERFACES.  IN FACT, IT IS ALMOST GUARANTEED THAT THEY WILL CHANGE OR
-   DISAPPEAR IN A FUTURE GMP RELEASE.
+   THE FUNCTIONS IN THIS FILE EXCEPT mpn_sqrtrem ARE INTERNAL WITH MUTABLE
+   INTERFACES.  IT IS ONLY SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES.
+   IN FACT, IT IS ALMOST GUARANTEED THAT THEY WILL CHANGE OR DISAPPEAR IN A
+   FUTURE GMP RELEASE.
 
-Copyright 1999-2002, 2004, 2005, 2008, 2010, 2012, 2015 Free Software
+Copyright 1999-2002, 2004, 2005, 2008, 2010, 2012, 2015, 2017 Free Software
 Foundation, Inc.
 
 This file is part of the GNU MP Library.
@@ -490,7 +490,7 @@
 	rp[1] = (high << (2*c)) | (rl >> (GMP_NUMB_BITS - 2*c));
 	rp[0] = rl << (2*c);
 	CALL_SQRTREM2_INPLACE (sp, rp);
-	cc = sp[0] >>= c;	/* c != 0, the higest bit of the root cc is 0. */
+	cc = sp[0] >>= c;	/* c != 0, the highest bit of the root cc is 0. */
 	rp[0] = rl -= cc*cc;	/* Computed modulo 2^GMP_LIMB_BITS, because it's smaller. */
 	return rl != 0;
       }
diff -r 8330de843689 -r 61eb6b13cf77 mpn/generic/toom52_mul.c
--- a/mpn/generic/toom52_mul.c	Mon Mar 27 18:46:06 2017 +0200
+++ b/mpn/generic/toom52_mul.c	Thu Mar 30 18:22:38 2017 +0200
@@ -160,7 +160,7 @@
 
   /* Compute bs2 and bsm2, recycling bs1 and bsm1. bs2=bs1+b1; bsm2=bsm1-b1  */
   mpn_add (bs2, bs1, n+1, b1, t);
-  if (flags & toom6_vm1_neg )
+  if (flags & toom6_vm1_neg)
     {
       bsm2[n] = mpn_add (bsm2, bsm1, n, b1, t);
       flags = (enum toom6_flags) (flags ^ toom6_vm2_neg);


More information about the gmp-commit mailing list