Cofactor canonicalisation of mpn_gcdext

Marc Glisse marc.glisse at
Thu May 5 21:15:15 CEST 2011

On Wed, 4 May 2011, Niels Möller wrote:

> nisse at (Niels Möller) writes:
>> mpz_gcdext still allocates un limbs for both gp and sp (and did allocate
>> un+1 until my checkin yesterday). I'll try reducing that to vsize, to
>> see what happens (and gsize == usize actually happens in the case vsize
>> == 0, which is allowed by mpz_gcdext but not by mpn_gcdext).
> I'm about to check in the attached mpz/gcdext.c.

In 32 bits, the mpz_gcdext test currently fails with:

ERROR in test 136
mpz_gcdext returned invalid result
mpz_gcdext returns:
/bin/sh: line 5:  3298 Aborted                 ${dir}$tst
FAIL: t-gcd

Marc Glisse

More information about the gmp-devel mailing list