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

mercurial at gmplib.org mercurial at gmplib.org
Wed Nov 30 17:49:30 UTC 2016


details:   /var/hg/gmp/rev/a1cf2df9bae7
changeset: 17146:a1cf2df9bae7
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Wed Nov 30 18:46:27 2016 +0100
description:
mpz/oddfac_1.c: Disable an ASSERT that needs a revision.

details:   /var/hg/gmp/rev/d32a879c1df1
changeset: 17147:d32a879c1df1
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Wed Nov 30 18:47:59 2016 +0100
description:
ChangeLog

diffstat:

 ChangeLog          |   9 +++++++++
 mini-gmp/ChangeLog |  17 +++++++++++++++++
 mpz/oddfac_1.c     |   2 +-
 3 files changed, 27 insertions(+), 1 deletions(-)

diffs (80 lines):

diff -r e451ba2f437b -r d32a879c1df1 ChangeLog
--- a/ChangeLog	Tue Nov 29 20:52:29 2016 +0100
+++ b/ChangeLog	Wed Nov 30 18:47:59 2016 +0100
@@ -1,3 +1,8 @@
+2016-11-27 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* mpz/gcd.c, mpz/gcdext.c: Use NEWALLOC.
+	* mpz/oddfac_1.c: Disable an ASSERT that needs a revision.
+
 2016-11-27  Torbjörn Granlund  <tg at gmplib.org>
 
 	* tests/mpz/reuse.c: Rewrite operand randomisation to use fixed ranges.
@@ -44,6 +49,10 @@
 
 	* asl.h: Initial support for artificially small limbs.
 
+2016-11-09 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* pz/iset_str.c: Lazy allocation.
+
 2016-11-01  Torbjörn Granlund  <tg at gmplib.org>
 
 	* mpn/generic/dive_1.c: Remove a forgotten dummy while-loop.  (Spotted
diff -r e451ba2f437b -r d32a879c1df1 mini-gmp/ChangeLog
--- a/mini-gmp/ChangeLog	Tue Nov 29 20:52:29 2016 +0100
+++ b/mini-gmp/ChangeLog	Wed Nov 30 18:47:59 2016 +0100
@@ -1,3 +1,7 @@
+2016-11-27 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* mini-gmp.c (mpz_get_si): fewer branches, safer forumla for negatives.
+
 2016-11-24  Niels Möller  <nisse at lysator.liu.se>
 
 	* tests/hex-random.c (mkseed): Produce a 48-bit mpz_t value,
@@ -21,6 +25,10 @@
 	(testmain): Add test with inputs which triggered the
 	mpn_invert_3by2 bug (see 2016-11-16 entry).
 
+2016-11-21 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* tests/t-signed.c: compare different signs, and after overflow.
+
 2016-11-20  Niels Möller  <nisse at lysator.liu.se>
 
 	* tests/t-signed.c: Reorganize testcase, to avoid undefined
@@ -45,6 +53,10 @@
 
 	* tests/Makefile: Pass EXTRA_CFLAGS to linker as a intermediate fix.
 
+2016-11-17 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* tests/t-str.c: free a pointer to avoid memory leaks.
+
 2016-11-16  Niels Möller  <nisse at lysator.liu.se>
 
 	* mini-gmp.c (mpn_invert_3by2): Fix arithmetic overflow
@@ -62,6 +74,11 @@
 	compilation and running of tests.
 	* tests/run-tests: Allow empty tests list.
 
+2016-11-14 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* tests/t-str.c: Some more test cases.
+	* tests/t-pprime_p.c: Use shorter operands, with different sizes.
+
 2016-11-01  Torbjörn Granlund  <tg at gmplib.org>
 
 	* tests/hex-random.c: Reinstate gmp.h inclusion.
diff -r e451ba2f437b -r d32a879c1df1 mpz/oddfac_1.c
--- a/mpz/oddfac_1.c	Tue Nov 29 20:52:29 2016 +0100
+++ b/mpz/oddfac_1.c	Wed Nov 30 18:47:59 2016 +0100
@@ -208,7 +208,7 @@
     s = limb_apprsqrt(n);
     ASSERT (s >= 5);
     s = n_to_bit (s);
-    ASSERT (bit_to_n (s) * bit_to_n (s) > n);
+    /* ASSERT (bit_to_n (s+1) * bit_to_n (s+1) > n); */
     ASSERT (s <= n_to_bit (n / 3));
     LOOP_ON_SIEVE_BEGIN (prime, n_to_bit (5), s, 0,sieve);
     SWING_A_PRIME (prime, n, prod, max_prod, factors, j);


More information about the gmp-commit mailing list