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

mercurial at gmplib.org mercurial at gmplib.org
Sat May 16 23:06:39 UTC 2020


details:   /var/hg/gmp/rev/3d8dfdf3bc95
changeset: 18074:3d8dfdf3bc95
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Sun May 17 01:01:50 2020 +0200
description:
(abs_sub_n): Conditionaly exclude.

details:   /var/hg/gmp/rev/52b67a736f7c
changeset: 18075:52b67a736f7c
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Sun May 17 01:06:02 2020 +0200
description:
ChangeLog

diffstat:

 ChangeLog                |  21 +++++++++++++++++++++
 mpn/generic/strongfibo.c |   4 ++++
 2 files changed, 25 insertions(+), 0 deletions(-)

diffs (49 lines):

diff -r dcac9b8ddeb8 -r 52b67a736f7c ChangeLog
--- a/ChangeLog	Sat May 16 23:46:17 2020 +0200
+++ b/ChangeLog	Sun May 17 01:06:02 2020 +0200
@@ -1,3 +1,24 @@
+2020-05-12  Torbjörn Granlund  <tg at gmplib.org>
+
+	* mpn/generic/hgcd2-div.h (tabp): Combine several undefined tabp
+	variable definitions with a macro.
+
+	* mpn/generic/strongfibo.c: Avoid defining helper function when unused.
+
+	* mpn/generic/dcpi1_bdiv_q.c (mpn_dcpi1_bdiv_q_n_itch): Disable unused
+	static function.
+
+	* mpz/mul.c: Add some {} to suppress warning.
+
+	* tests/mpn/t-gcd_11.c: Exit main() properly.
+	* tests/mpn/t-gcd_22.c: Likewise.
+	* tests/mpn/t-gcdext_1.c: Likewise.
+
+2020-04-28  Torbjörn Granlund  <tg at gmplib.org>
+
+	* tests/mpz/reuse.c (realloc_if_reducing): New function.
+	(INVOKE_RRS, etc): Use realloc_if_reducing.
+
 2020-03-10 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mpn/generic/mulmod_bnm1.c (mpn_bc_mulmod_bnp1):
diff -r dcac9b8ddeb8 -r 52b67a736f7c mpn/generic/strongfibo.c
--- a/mpn/generic/strongfibo.c	Sat May 16 23:46:17 2020 +0200
+++ b/mpn/generic/strongfibo.c	Sun May 17 01:06:02 2020 +0200
@@ -37,6 +37,9 @@
 #include <stdio.h>
 #include "gmp-impl.h"
 
+
+#if HAVE_NATIVE_mpn_rsblsh1_n || HAVE_NATIVE_mpn_sublsh1_n
+#else
 /* Stores |{ap,n}-{bp,n}| in {rp,n},
    returns the sign of {ap,n}-{bp,n}. */
 static int
@@ -65,6 +68,7 @@
     }
   return 0;
 }
+#endif
 
 /* Computes at most count terms of the sequence needed by the
    Lucas-Lehmer-Riesel test, indexing backward:



More information about the gmp-commit mailing list