[Gmp-commit] /home/hgfiles/gmp: Comment improvements.
mercurial at gmplib.org
mercurial at gmplib.org
Wed Mar 10 17:14:25 CET 2010
details: /home/hgfiles/gmp/rev/546c7502dbcb
changeset: 13477:546c7502dbcb
user: Niels M?ller <nisse at lysator.liu.se>
date: Wed Mar 10 17:14:17 2010 +0100
description:
Comment improvements.
diffstat:
mpn/generic/jacbase.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 9ddaaacc501f -r 546c7502dbcb mpn/generic/jacbase.c
--- a/mpn/generic/jacbase.c Wed Mar 10 16:47:01 2010 +0100
+++ b/mpn/generic/jacbase.c Wed Mar 10 17:14:17 2010 +0100
@@ -172,6 +172,8 @@
/* Computes (a/b) for odd b and any a. The initial bit is taken as a
* parameter. We have no need for the convention that the sign is in
* bit 1, internally we use bit 0. */
+
+/* FIXME: Could try table-based count_trailing_zeros. */
int
mpn_jacobi_base (mp_limb_t a, mp_limb_t b, int bit)
{
@@ -193,7 +195,7 @@
count_trailing_zeros (c, a);
bit ^= c & (b ^ (b >> 1));
- /* We may have c==GMP_LIMB_BITS-1, so we cant use a>>c+1. */
+ /* We may have c==GMP_LIMB_BITS-1, so we can't use a>>c+1. */
a >>= c;
a >>= 1;
More information about the gmp-commit
mailing list