Bug in mpz_mul with --disable-fft option... ?

Torbjorn Granlund tg at gmplib.org
Wed Jun 17 11:41:50 CEST 2009


"Yves Gallot" <galloty at orange.fr> writes:

  I compiled gmp 4.3.1 with mingw and I'm using it as a Windows dll in VS 2008
  and it works perfectly with different codes.
  
  To reduce memory allocated during mpz_mul operation on some huge numbers,
  I compiled gmp 4.3.1 with the --disable-fft option.
  
The problem is that we somewhat optimisitcally allocate from the stack
in toom4, which is fine when fft takes the really large operands, but
fails when toom4 is the last multiplication methid used.

I think I have fixed this problem.  Please update from the mercurial
repository, http://gmplib.org:8000/gmp-4.3/ and please report back if
the problem is now gone.

-- 
Torbjörn


More information about the gmp-bugs mailing list