Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/gmp/files: gmp-5.0.1-perfpow-test.patch
Date: Mon, 30 Aug 2010 17:58:21
Message-Id: 20100830175819.418AB20047@flycatcher.gentoo.org
1 vapier 10/08/30 17:58:19
2
3 Added: gmp-5.0.1-perfpow-test.patch
4 Log:
5 Add test fix from upstream.
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-libs/gmp/files/gmp-5.0.1-perfpow-test.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/files/gmp-5.0.1-perfpow-test.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/files/gmp-5.0.1-perfpow-test.patch?rev=1.1&content-type=text/plain
13
14 Index: gmp-5.0.1-perfpow-test.patch
15 ===================================================================
16
17 # HG changeset patch
18 # User Torbjorn Granlund <tege@××××××.org>
19 # Date 1267122532 -3600
20 # Node ID 794410151f5f966bcb5c3489b6441614990efe7c
21 # Parent 948660e2e56d9cfaae035082b8fd473985505fb6
22 Fix a test case to work for long long limbs.
23
24 2010-02-25 Torbjorn Granlund <tege@××××××.org>
25
26 * tests/mpz/t-perfpow.c (check_random): Use mp_limb_t type for limb
27 variables.
28
29 diff -r 948660e2e56d -r 794410151f5f tests/mpz/t-perfpow.c
30 --- a/tests/mpz/t-perfpow.c Thu Feb 25 16:08:21 2010 +0100
31 +++ b/tests/mpz/t-perfpow.c Thu Feb 25 19:28:52 2010 +0100
32 @@ -2,7 +2,7 @@
33
34 Contributed to the GNU project by Torbjorn Granlund and Martin Boij.
35
36 -Copyright 2008, 2009 Free Software Foundation, Inc.
37 +Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
38
39 This file is part of the GNU MP Library.
40
41 @@ -109,7 +109,8 @@
42 {
43 mpz_t n, np, temp, primes[NRP];
44 int i, j, k, unique, destroy, res;
45 - unsigned long int nrprimes, primebits, g, exp[NRP], e;
46 + unsigned long int nrprimes, primebits;
47 + mp_limb_t g, exp[NRP], e;
48 gmp_randstate_ptr rands;
49
50 rands = RANDS;