[Gmp-commit] /home/hgfiles/gmp: Fix a test case to work for long long limbs.
mercurial at gmplib.org
mercurial at gmplib.org
Thu Feb 25 19:26:04 CET 2010
details: /home/hgfiles/gmp/rev/31be64b87c70
changeset: 13446:31be64b87c70
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Feb 25 19:26:01 2010 +0100
description:
Fix a test case to work for long long limbs.
diffstat:
ChangeLog | 3 +++
tests/mpz/t-perfpow.c | 5 +++--
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r accaa23768f7 -r 31be64b87c70 ChangeLog
--- a/ChangeLog Thu Feb 25 18:49:00 2010 +0100
+++ b/ChangeLog Thu Feb 25 19:26:01 2010 +0100
@@ -10,6 +10,9 @@
2010-02-25 Torbjorn Granlund <tege at gmplib.org>
+ * tests/mpz/t-perfpow.c (check_random): Use mp_limb_t type for limb
+ variables.
+
* tests/mpn/t-toom6h.c (COUNT): Define.
* tests/mpn/t-toom8h.c (COUNT): Define.
diff -r accaa23768f7 -r 31be64b87c70 tests/mpz/t-perfpow.c
--- a/tests/mpz/t-perfpow.c Thu Feb 25 18:49:00 2010 +0100
+++ b/tests/mpz/t-perfpow.c Thu Feb 25 19:26:01 2010 +0100
@@ -2,7 +2,7 @@
Contributed to the GNU project by Torbjorn Granlund and Martin Boij.
-Copyright 2008, 2009 Free Software Foundation, Inc.
+Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -109,7 +109,8 @@
{
mpz_t n, np, temp, primes[NRP];
int i, j, k, unique, destroy, res;
- unsigned long int nrprimes, primebits, g, exp[NRP], e;
+ unsigned long int nrprimes, primebits;
+ mp_limb_t g, exp[NRP], e;
gmp_randstate_ptr rands;
rands = RANDS;
More information about the gmp-commit
mailing list