[Gmp-commit] /var/hg/gmp: 3 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Sun Feb 9 15:21:02 UTC 2020
details: /var/hg/gmp/rev/30fcf2be9f04
changeset: 18041:30fcf2be9f04
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sun Feb 09 16:15:49 2020 +0100
description:
tests/mpn/t-sqrmod_bnm1.c: Trigger special cases more often.
details: /var/hg/gmp/rev/6245941a5b29
changeset: 18042:6245941a5b29
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sun Feb 09 16:16:03 2020 +0100
description:
ChangeLog
details: /var/hg/gmp/rev/f5601c2a8b11
changeset: 18043:f5601c2a8b11
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sun Feb 09 16:16:19 2020 +0100
description:
Copyright years
diffstat:
ChangeLog | 17 +++++++++++++++++
mpn/generic/mulmod_bnm1.c | 3 ++-
mpn/generic/sqrmod_bnm1.c | 2 +-
tests/mpn/t-mulmod_bnm1.c | 3 ++-
tests/mpn/t-sqrmod_bnm1.c | 5 +++--
tests/mpz/t-nextprime.c | 2 +-
6 files changed, 26 insertions(+), 6 deletions(-)
diffs (105 lines):
diff -r 3507f80aee0a -r f5601c2a8b11 ChangeLog
--- a/ChangeLog Sun Feb 09 14:14:15 2020 +0100
+++ b/ChangeLog Sun Feb 09 16:16:19 2020 +0100
@@ -1,8 +1,25 @@
+2020-02-09 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+ * mpn/generic/sqrmod_bnm1.c (mpn_bc_sqrmod_bnp1):
+ Shorter mpn_sqr.
+ * mpn/generic/mulmod_bnm1.c (mpn_bc_mulmod_bnp1):
+ Shorter mpn_mul_n.
+
+ * tests/mpn/t-mulmod_bnm1.c: Trigger special cases more often.
+ * tests/mpn/t-sqrmod_bnm1.c: Likewise.
+
+2020-02-09 Seth Troisi <sethtroisi at google.com>
+
+ * tests/mpz/t-nextprime.c: Split into sub-tests.
+
2020-02-02 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mpn/generic/powm.c: Better handling of current window-size.
* mpn/generic/powlo.c: Likewise.
+ * mpn/generic/jacbase.c (mpn_jacobi_base): Optimise _METHOD 4.
+ * mpz/aors.h: Branches optimisation.
+
2020-01-31 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mpn/generic/powm.c (MPN_REDC_0): Subtractive redc
diff -r 3507f80aee0a -r f5601c2a8b11 mpn/generic/mulmod_bnm1.c
--- a/mpn/generic/mulmod_bnm1.c Sun Feb 09 14:14:15 2020 +0100
+++ b/mpn/generic/mulmod_bnm1.c Sun Feb 09 16:16:19 2020 +0100
@@ -1,3 +1,4 @@
+
/* mulmod_bnm1.c -- multiplication mod B^n-1.
Contributed to the GNU project by Niels Möller, Torbjorn Granlund and
@@ -7,7 +8,7 @@
SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST
GUARANTEED THAT THEY WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE.
-Copyright 2009, 2010, 2012, 2013 Free Software Foundation, Inc.
+Copyright 2009, 2010, 2012, 2013, 2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
diff -r 3507f80aee0a -r f5601c2a8b11 mpn/generic/sqrmod_bnm1.c
--- a/mpn/generic/sqrmod_bnm1.c Sun Feb 09 14:14:15 2020 +0100
+++ b/mpn/generic/sqrmod_bnm1.c Sun Feb 09 16:16:19 2020 +0100
@@ -7,7 +7,7 @@
SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST
GUARANTEED THAT THEY WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE.
-Copyright 2009, 2010, 2012 Free Software Foundation, Inc.
+Copyright 2009, 2010, 2012, 2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
diff -r 3507f80aee0a -r f5601c2a8b11 tests/mpn/t-mulmod_bnm1.c
--- a/tests/mpn/t-mulmod_bnm1.c Sun Feb 09 14:14:15 2020 +0100
+++ b/tests/mpn/t-mulmod_bnm1.c Sun Feb 09 16:16:19 2020 +0100
@@ -1,8 +1,9 @@
+
/* Test for mulmod_bnm1 function.
Contributed to the GNU project by Marco Bodrato.
-Copyright 2009 Free Software Foundation, Inc.
+Copyright 2009, 2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
diff -r 3507f80aee0a -r f5601c2a8b11 tests/mpn/t-sqrmod_bnm1.c
--- a/tests/mpn/t-sqrmod_bnm1.c Sun Feb 09 14:14:15 2020 +0100
+++ b/tests/mpn/t-sqrmod_bnm1.c Sun Feb 09 16:16:19 2020 +0100
@@ -2,7 +2,7 @@
Contributed to the GNU project by Marco Bodrato.
-Copyright 2009 Free Software Foundation, Inc.
+Copyright 2009, 2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
@@ -126,7 +126,8 @@
mp_size_t x;
MPN_COPY (ap, ap + (n >> 1), an - (n >> 1));
MPN_ZERO (ap + an - (n >> 1) , n - an);
- x = (n == an) ? 0 : gmp_urandomm_ui (rands, n - an);
+ x = 0;
+ /* x = (n == an) ? 0 : gmp_urandomm_ui (rands, n - an); */
ap[x] += gmp_urandomm_ui (rands, 3) - 1;
}
rn = MIN(n, 2*an);
diff -r 3507f80aee0a -r f5601c2a8b11 tests/mpz/t-nextprime.c
--- a/tests/mpz/t-nextprime.c Sun Feb 09 14:14:15 2020 +0100
+++ b/tests/mpz/t-nextprime.c Sun Feb 09 16:16:19 2020 +0100
@@ -1,6 +1,6 @@
/* Test mpz_nextprime.
-Copyright 2009, 2015, 2018 Free Software Foundation, Inc.
+Copyright 2009, 2015, 2018, 2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
More information about the gmp-commit
mailing list