[Gmp-commit] /var/hg/gmp: 3 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Fri Feb 1 19:12:32 CET 2013
details: /var/hg/gmp/rev/e784e45b7643
changeset: 15371:e784e45b7643
user: Torbjorn Granlund <tege at gmplib.org>
date: Fri Feb 01 19:11:26 2013 +0100
description:
(DIGITS_IN_BASE_PER_LIMB): Add a cast.
(LIMBS_PER_DIGIT_IN_BASE): Likewise.
details: /var/hg/gmp/rev/9ae95f5acbb9
changeset: 15372:9ae95f5acbb9
user: Torbjorn Granlund <tege at gmplib.org>
date: Fri Feb 01 19:11:40 2013 +0100
description:
ChangeLog
details: /var/hg/gmp/rev/515d809e9fff
changeset: 15373:515d809e9fff
user: Torbjorn Granlund <tege at gmplib.org>
date: Fri Feb 01 19:12:23 2013 +0100
description:
Fix a comment typo.
diffstat:
ChangeLog | 3 +++
gmp-impl.h | 7 ++++---
tests/mpn/logic.c | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
diffs (55 lines):
diff -r 525ee21f3b73 -r 515d809e9fff ChangeLog
--- a/ChangeLog Fri Feb 01 13:40:27 2013 +0100
+++ b/ChangeLog Fri Feb 01 19:12:23 2013 +0100
@@ -1,5 +1,8 @@
2013-02-01 Torbjorn Granlund <tege at gmplib.org>
+ * gmp-impl.h (DIGITS_IN_BASE_PER_LIMB): Add a cast.
+ (LIMBS_PER_DIGIT_IN_BASE): Likewise.
+
* tests/refmpn.c (refmpn_mul): Use toom6h instead of toom44 for the
largest operands.
diff -r 525ee21f3b73 -r 515d809e9fff gmp-impl.h
--- a/gmp-impl.h Fri Feb 01 13:40:27 2013 +0100
+++ b/gmp-impl.h Fri Feb 01 19:12:23 2013 +0100
@@ -4,7 +4,7 @@
BE SUBJECT TO INCOMPATIBLE CHANGES IN FUTURE GNU MP RELEASES.
Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
-2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software
+2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
@@ -4271,7 +4271,8 @@
#define DIGITS_IN_BASE_PER_LIMB(res, nlimbs, b) \
do { \
mp_limb_t _ph, _pl; \
- umul_ppmm (_ph, _pl, mp_bases[b].logb2, GMP_NUMB_BITS * (nlimbs)); \
+ umul_ppmm (_ph, _pl, \
+ mp_bases[b].logb2, GMP_NUMB_BITS * (mp_limb_t) (nlimbs));\
res = _ph; \
} while (0)
@@ -4280,7 +4281,7 @@
#define LIMBS_PER_DIGIT_IN_BASE(res, ndigits, b) \
do { \
mp_limb_t _ph, _dummy; \
- umul_ppmm (_ph, _dummy, mp_bases[b].log2b, (ndigits)); \
+ umul_ppmm (_ph, _dummy, mp_bases[b].log2b, (mp_limb_t) (ndigits)); \
res = 8 * _ph / GMP_NUMB_BITS + 2; \
} while (0)
diff -r 525ee21f3b73 -r 515d809e9fff tests/mpn/logic.c
--- a/tests/mpn/logic.c Fri Feb 01 13:40:27 2013 +0100
+++ b/tests/mpn/logic.c Fri Feb 01 19:12:23 2013 +0100
@@ -23,7 +23,7 @@
#include <stdio.h>
/* Fake native prevalence of the tested operations, so that we actually test
- the compiled functions, i.., the ones which users will reach. The inlined
+ the compiled functions, i.e., the ones which users will reach. The inlined
variants will be tested through tests/mpz/logic.c. */
#define HAVE_NATIVE_mpn_com 1
#define HAVE_NATIVE_mpn_and_n 1
More information about the gmp-commit
mailing list