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

mercurial at gmplib.org mercurial at gmplib.org
Mon Mar 17 18:49:08 UTC 2014


details:   /var/hg/gmp/rev/8192ec1a67b7
changeset: 16342:8192ec1a67b7
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 17 19:45:55 2014 +0100
description:
Whitespace cleanup.

details:   /var/hg/gmp/rev/a63285e59159
changeset: 16343:a63285e59159
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 17 19:46:27 2014 +0100
description:
Whitespace cleanup.

details:   /var/hg/gmp/rev/e0d846f18508
changeset: 16344:e0d846f18508
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 17 19:46:44 2014 +0100
description:
Whitespace cleanup.

details:   /var/hg/gmp/rev/36594d36474d
changeset: 16345:36594d36474d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 17 19:47:33 2014 +0100
description:
Whitespace cleanup.

details:   /var/hg/gmp/rev/c688f3cd28ff
changeset: 16346:c688f3cd28ff
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 17 19:48:11 2014 +0100
description:
Whitespace cleanup.

details:   /var/hg/gmp/rev/694c8f8b5a82
changeset: 16347:694c8f8b5a82
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 17 19:49:05 2014 +0100
description:
Slight rephrasing.

diffstat:

 doc/gmp.texi                |  4 ++--
 mini-gmp/mini-gmp.c         |  8 ++++----
 mini-gmp/tests/t-pprime_p.c |  6 +++---
 mini-gmp/tests/t-sqrt.c     |  4 ++--
 tests/mpn/t-div.c           |  2 +-
 tests/mpz/t-pprime_p.c      |  6 +++---
 6 files changed, 15 insertions(+), 15 deletions(-)

diffs (146 lines):

diff -r 430bef4bae3e -r 694c8f8b5a82 doc/gmp.texi
--- a/doc/gmp.texi	Sat Mar 15 22:34:03 2014 +0100
+++ b/doc/gmp.texi	Mon Mar 17 19:49:05 2014 +0100
@@ -450,7 +450,7 @@
 the additional option of applying later versions of these licenses. (The
 reason for this dual licensing is to make it possible to use the library with
 programs which are licensed under GPL version 2, but which for historical or
-other reasons do not allow use under later versions of the GPL). 
+other reasons do not allow use under later versions of the GPL).
 
 Programs which are not part of the library itself, such as demonstration
 programs and the GMP testsuite, are licensed under the terms of the GNU
@@ -4579,7 +4579,7 @@
 what's needed to determine a result under that definition.
 
 The precision selected by the user for a variable is a minimum value, GMP may
-increase it a little to facilitate efficient calculation.  Currently this means
+increase it to facilitate efficient calculation.  Currently this means
 rounding up to a whole limb, and then sometimes having a further partial limb,
 depending on the high limb of the mantissa.
 
diff -r 430bef4bae3e -r 694c8f8b5a82 mini-gmp/mini-gmp.c
--- a/mini-gmp/mini-gmp.c	Sat Mar 15 22:34:03 2014 +0100
+++ b/mini-gmp/mini-gmp.c	Mon Mar 17 19:49:05 2014 +0100
@@ -3409,7 +3409,7 @@
 
   /* Above test excludes n == 0 */
   assert (n->_mp_size != 0);
-  
+
   if (mpz_cmpabs_ui (n, 64) < 0)
     return (GMP_PRIME_MASK >> (n->_mp_d[0] >> 1)) & 2;
 
@@ -3419,7 +3419,7 @@
   /* All prime factors are >= 31. */
   if (mpz_cmpabs_ui (n, 31*31) < 0)
     return 2;
-  
+
   /* Use Miller-Rabin, with a deterministic sequence of bases, a[j] =
      j^2 + j + 41 using Euler's polynomial. We potentially stop early,
      if a[j] >= n - 1. Since n >= 31*31, this can happen only if reps >
@@ -3433,7 +3433,7 @@
   nm1->_mp_size = mpz_abs_sub_ui (nm1, n, 1);
   k = mpz_scan1 (nm1, 0);
   mpz_tdiv_q_2exp (q, nm1, k);
-  
+
   for (j = 0, is_prime = 1; is_prime & (j < reps); j++)
     {
       mpz_set_ui (y, (unsigned long) j*j+j+41);
@@ -3449,7 +3449,7 @@
   mpz_clear (nm1);
   mpz_clear (q);
   mpz_clear (y);
-    
+
   return is_prime;
 }
 
diff -r 430bef4bae3e -r 694c8f8b5a82 mini-gmp/tests/t-pprime_p.c
--- a/mini-gmp/tests/t-pprime_p.c	Sat Mar 15 22:34:03 2014 +0100
+++ b/mini-gmp/tests/t-pprime_p.c	Mon Mar 17 19:49:05 2014 +0100
@@ -135,7 +135,7 @@
 	mpz_set_ui (b, 2);
 
       mpz_mul (n, a, b);
-      
+
       check_pn (n, 0);
     }
   mpz_clear (a);
@@ -150,7 +150,7 @@
   static const char * const primes[] = {
     "2", "17", "65537",
     /* diffie-hellman-group1-sha1, also "Well known group 2" in RFC
-       2412, 2^1024 - 2^960 - 1 + 2^64 * { [2^894 pi] + 129093 } */  
+       2412, 2^1024 - 2^960 - 1 + 2^64 * { [2^894 pi] + 129093 } */
     "0xFFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1"
     "29024E088A67CC74020BBEA63B139B22514A08798E3404DD"
     "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245"
@@ -170,7 +170,7 @@
       mpz_set_str_or_abort (n, primes[i], 0);
       check_one (n, 1);
     }
-  mpz_clear (n);  
+  mpz_clear (n);
 }
 
 void
diff -r 430bef4bae3e -r 694c8f8b5a82 mini-gmp/tests/t-sqrt.c
--- a/mini-gmp/tests/t-sqrt.c	Sat Mar 15 22:34:03 2014 +0100
+++ b/mini-gmp/tests/t-sqrt.c	Mon Mar 17 19:49:05 2014 +0100
@@ -96,8 +96,8 @@
 	fprintf (stderr, "mpn_sqrtrem buffer overrun on rp.\n");
 	abort ();
       }
-  } 
-  
+  }
+
   mpz_limbs_finish (s, (un + 1) / 2);
 }
 
diff -r 430bef4bae3e -r 694c8f8b5a82 tests/mpn/t-div.c
--- a/tests/mpn/t-div.c	Sat Mar 15 22:34:03 2014 +0100
+++ b/tests/mpn/t-div.c	Mon Mar 17 19:49:05 2014 +0100
@@ -328,7 +328,7 @@
 	  /* Normalised case, mpn_sec_div_qr */
 	  itch = mpn_sec_div_qr_itch (nn, dn);
 	  scratch[itch] = ran;
-	  
+
 	  MPN_COPY (rp, np, nn);
 	  if (nn >= dn)
 	    MPN_COPY (qp, junkp, nn - dn + 1);
diff -r 430bef4bae3e -r 694c8f8b5a82 tests/mpz/t-pprime_p.c
--- a/tests/mpz/t-pprime_p.c	Sat Mar 15 22:34:03 2014 +0100
+++ b/tests/mpz/t-pprime_p.c	Mon Mar 17 19:49:05 2014 +0100
@@ -134,7 +134,7 @@
 	mpz_set_ui (b, 2);
 
       mpz_mul (n, a, b);
-      
+
       check_pn (n, 0);
     }
   mpz_clear (a);
@@ -149,7 +149,7 @@
   static const char * const primes[] = {
     "2", "17", "65537",
     /* diffie-hellman-group1-sha1, also "Well known group 2" in RFC
-       2412, 2^1024 - 2^960 - 1 + 2^64 * { [2^894 pi] + 129093 } */  
+       2412, 2^1024 - 2^960 - 1 + 2^64 * { [2^894 pi] + 129093 } */
     "0xFFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1"
     "29024E088A67CC74020BBEA63B139B22514A08798E3404DD"
     "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245"
@@ -169,7 +169,7 @@
       mpz_set_str_or_abort (n, primes[i], 0);
       check_one (n, 1);
     }
-  mpz_clear (n);  
+  mpz_clear (n);
 }
 
 int


More information about the gmp-commit mailing list