[Gmp-commit] /var/hg/gmp: Fix inconsistent use of GCD_DC_THRESHOLD in mpn_jac...

mercurial at gmplib.org mercurial at gmplib.org
Wed Apr 17 04:49:20 UTC 2019


details:   /var/hg/gmp/rev/09135e90130a
changeset: 17760:09135e90130a
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Wed Apr 17 06:48:33 2019 +0200
description:
Fix inconsistent use of GCD_DC_THRESHOLD in mpn_jacobi_n.

diffstat:

 ChangeLog            |  5 +++++
 mpn/generic/jacobi.c |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 4cc1b97583aa -r 09135e90130a ChangeLog
--- a/ChangeLog	Tue Apr 02 12:57:14 2019 +0200
+++ b/ChangeLog	Wed Apr 17 06:48:33 2019 +0200
@@ -1,3 +1,8 @@
+2019-04-17  Niels Möller  <nisse at lysator.liu.se>
+
+	* mpn/generic/jacobi.c (mpn_jacobi_n): Use JACOBI_DC_THRESHOLD,
+	not GCD_DC_THRESHOLD. Inconsistency spotted by Seth Troisi.
+
 2019-04-02  Torbjörn Granlund  <tg at gmplib.org>
 
 	* mpn/x86_64/fat/fat.c (__gmpn_cpuvec_init):
diff -r 4cc1b97583aa -r 09135e90130a mpn/generic/jacobi.c
--- a/mpn/generic/jacobi.c	Tue Apr 02 12:57:14 2019 +0200
+++ b/mpn/generic/jacobi.c	Wed Apr 17 06:48:33 2019 +0200
@@ -174,7 +174,7 @@
      storage etc. */
   scratch = MPN_GCD_SUBDIV_STEP_ITCH(n);
 
-  if (ABOVE_THRESHOLD (n, GCD_DC_THRESHOLD))
+  if (ABOVE_THRESHOLD (n, JACOBI_DC_THRESHOLD))
     {
       mp_size_t hgcd_scratch;
       mp_size_t update_scratch;


More information about the gmp-commit mailing list