patches/gmp/5.0.1/100-fix-tests-ABI-long-long.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Mar 30 22:31:49 2010 +0200 (2010-03-30)
changeset 1873 4477403726db
child 1879 b4ce08060b6f
permissions -rw-r--r--
complibs: update versions

GMP : 4.3.2, 5.0.1*
CLooG/PPL: 0.15.8 0.15.9
libelf : 0.8.13

*: patch series added
     1 
     2 # HG changeset patch
     3 # User Torbjorn Granlund <tege@gmplib.org>
     4 # Date 1267122532 -3600
     5 # Node ID 794410151f5f966bcb5c3489b6441614990efe7c
     6 # Parent  948660e2e56d9cfaae035082b8fd473985505fb6
     7 Fix a test case to work for long long limbs.
     8 
     9 diff -r 948660e2e56d -r 794410151f5f ChangeLog
    10 --- a/ChangeLog	Thu Feb 25 16:08:21 2010 +0100
    11 +++ b/ChangeLog	Thu Feb 25 19:28:52 2010 +0100
    12 @@ -1,5 +1,8 @@
    13  2010-02-25  Torbjorn Granlund  <tege@gmplib.org>
    14  
    15 +	* tests/mpz/t-perfpow.c (check_random): Use mp_limb_t type for limb
    16 +	variables.
    17 +
    18  	* tests/mpn/t-div.c: Cast a switch index to placate HP's cc.
    19  	* tests/mpn/t-bdiv.c: Likewise.
    20  
    21 diff -r 948660e2e56d -r 794410151f5f tests/mpz/t-perfpow.c
    22 --- a/tests/mpz/t-perfpow.c	Thu Feb 25 16:08:21 2010 +0100
    23 +++ b/tests/mpz/t-perfpow.c	Thu Feb 25 19:28:52 2010 +0100
    24 @@ -2,7 +2,7 @@
    25  
    26     Contributed to the GNU project by Torbjorn Granlund and Martin Boij.
    27  
    28 -Copyright 2008, 2009 Free Software Foundation, Inc.
    29 +Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
    30  
    31  This file is part of the GNU MP Library.
    32  
    33 @@ -109,7 +109,8 @@
    34  {
    35    mpz_t n, np, temp, primes[NRP];
    36    int i, j, k, unique, destroy, res;
    37 -  unsigned long int nrprimes, primebits, g, exp[NRP], e;
    38 +  unsigned long int nrprimes, primebits;
    39 +  mp_limb_t g, exp[NRP], e;
    40    gmp_randstate_ptr rands;
    41  
    42    rands = RANDS;
    43