[Gmp-commit] /var/hg/gmp: Cast non-limb count_leading_zeros argument.
mercurial at gmplib.org
mercurial at gmplib.org
Thu May 24 11:52:19 CEST 2012
details: /var/hg/gmp/rev/58193dcd0b8e
changeset: 15002:58193dcd0b8e
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu May 24 11:52:14 2012 +0200
description:
Cast non-limb count_leading_zeros argument.
diffstat:
ChangeLog | 4 ++++
mpz/n_pow_ui.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 19070fb25759 -r 58193dcd0b8e ChangeLog
--- a/ChangeLog Thu May 24 10:12:28 2012 +0200
+++ b/ChangeLog Thu May 24 11:52:14 2012 +0200
@@ -1,3 +1,7 @@
+2012-05-24 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpz/n_pow_ui.c: Cast non-limb count_leading_zeros argument.
+
2012-05-24 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mpz/remove.c: Support negative divisor.
diff -r 19070fb25759 -r 58193dcd0b8e mpz/n_pow_ui.c
--- a/mpz/n_pow_ui.c Thu May 24 10:12:28 2012 +0200
+++ b/mpz/n_pow_ui.c Thu May 24 11:52:14 2012 +0200
@@ -4,7 +4,7 @@
CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN
FUTURE GNU MP RELEASES.
-Copyright 2001, 2002, 2005 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2005, 2012 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -406,7 +406,7 @@
/* Go from high to low over the bits of e, starting with i pointing at
the bit below the highest 1 (which will mean i==-1 if e==1). */
- count_leading_zeros (cnt, e);
+ count_leading_zeros (cnt, (mp_limb_t) e);
i = GMP_LIMB_BITS - cnt - 2;
#if HAVE_NATIVE_mpn_mul_2
More information about the gmp-commit
mailing list