[Gmp-commit] /var/hg/gmp: ...

mercurial at gmplib.org mercurial at gmplib.org
Tue May 1 09:40:44 CEST 2012


details:   /var/hg/gmp/rev/b72f560a526c
changeset: 14926:b72f560a526c
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue May 01 09:40:38 2012 +0200
description:
...

diffstat:

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

diffs (12 lines):

diff -r 37ab1d5f26f3 -r b72f560a526c mpz/2fac_ui.c
--- a/mpz/2fac_ui.c	Tue May 01 00:22:41 2012 +0200
+++ b/mpz/2fac_ui.c	Tue May 01 09:40:38 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_2N)
+    if ((n <= TABLE_LIMIT_2N_MINUS_POPC_2Ni) & (n != 0))
       count = __gmp_fac2cnt_table[n / 2 - 1];
     else
       {


More information about the gmp-commit mailing list