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

mercurial at gmplib.org mercurial at gmplib.org
Sun Nov 11 22:06:23 UTC 2018


details:   /var/hg/gmp/rev/86de9f36ea15
changeset: 17689:86de9f36ea15
user:      "Marco Bodrato <bodrato at mail.dm.unipi.it>"
date:      Thu Nov 01 12:05:13 2018 +0100
description:
tests/mpz/t-pprime_p.c (check_primes): Two more primes, with a large D for (D/p)=-1

details:   /var/hg/gmp/rev/4c54563d50b0
changeset: 17690:4c54563d50b0
user:      "Marco Bodrato <bodrato at mail.dm.unipi.it>"
date:      Fri Aug 17 12:29:02 2018 +0200
description:
mpn/generic/mod_34lsub1.c: Initialise c[012] once.

diffstat:

 mpn/generic/mod_34lsub1.c |  4 +---
 tests/mpz/t-pprime_p.c    |  1 +
 2 files changed, 2 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 6cd185dedd3b -r 4c54563d50b0 mpn/generic/mod_34lsub1.c
--- a/mpn/generic/mod_34lsub1.c	Thu Nov 08 21:55:29 2018 +0100
+++ b/mpn/generic/mod_34lsub1.c	Fri Aug 17 12:29:02 2018 +0200
@@ -96,9 +96,7 @@
 mp_limb_t
 mpn_mod_34lsub1 (mp_srcptr p, mp_size_t n)
 {
-  mp_limb_t  c0 = 0;
-  mp_limb_t  c1 = 0;
-  mp_limb_t  c2 = 0;
+  mp_limb_t  c0, c1, c2;
   mp_limb_t  a0, a1, a2;
 
   ASSERT (n >= 1);
diff -r 6cd185dedd3b -r 4c54563d50b0 tests/mpz/t-pprime_p.c
--- a/tests/mpz/t-pprime_p.c	Thu Nov 08 21:55:29 2018 +0100
+++ b/tests/mpz/t-pprime_p.c	Fri Aug 17 12:29:02 2018 +0200
@@ -147,6 +147,7 @@
 {
   static const char * const primes[] = {
     "2", "53", "1234567891",
+    "2055693949", "16412292043871650369",
     /* diffie-hellman-group1-sha1, also "Well known group 2" in RFC
        2412, 2^1024 - 2^960 - 1 + 2^64 * { [2^894 pi] + 129093 } */
     "0xFFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1"


More information about the gmp-commit mailing list