Cofactor canonicalisation of mpn_gcdext

Torbjorn Granlund tg at
Thu May 5 21:38:15 CEST 2011

Marc Glisse <marc.glisse at> writes:

  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

I cannot reproduce this on shell (using ABI=32).


More information about the gmp-devel mailing list