[Gmp-commit] /var/hg/gmp: Fix assumed typo.

mercurial at gmplib.org mercurial at gmplib.org
Tue May 1 15:16:28 CEST 2012


details:   /var/hg/gmp/rev/4e2aba18d473
changeset: 14928:4e2aba18d473
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue May 01 15:16:25 2012 +0200
description:
Fix assumed typo.

diffstat:

 ChangeLog     |  2 ++
 mpz/2fac_ui.c |  2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 41a0683069cf -r 4e2aba18d473 ChangeLog
--- a/ChangeLog	Tue May 01 12:18:26 2012 +0200
+++ b/ChangeLog	Tue May 01 15:16:25 2012 +0200
@@ -1,5 +1,7 @@
 2012-05-01  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpz/2fac_ui.c: Fix assumed typo.
+
 	* mpn/arm/v6/gmp-mparam.h: New file.
 
 	* mpn/arm/v5/gcd_1.asm: Hack for undefined BMOD_1_TO_MOD_1_THRESHOLD.
diff -r 41a0683069cf -r 4e2aba18d473 mpz/2fac_ui.c
--- a/mpz/2fac_ui.c	Tue May 01 12:18:26 2012 +0200
+++ b/mpz/2fac_ui.c	Tue May 01 15:16:25 2012 +0200
@@ -45,7 +45,7 @@
   if ((n & 1) == 0) { /* n is even, n = 2k, (2k)!! = k! 2^k */
     mp_limb_t count;
 
-    if ((n <= TABLE_LIMIT_2N_MINUS_POPC_2Ni) & (n != 0))
+    if ((n <= TABLE_LIMIT_2N_MINUS_POPC_2N) & (n != 0))
       count = __gmp_fac2cnt_table[n / 2 - 1];
     else
       {


More information about the gmp-commit mailing list