Stack allocation

Torbjörn Granlund tg at
Fri Jun 6 18:28:23 UTC 2014

tg at (Torbjörn Granlund) writes:

  I modified the TMP_SALLOC macro in gmp-impl.h to print its allocation
  argument.  I did this as I suspected that we sometimes invoke the SALLOC
  form inappropriately for huge allocation.
After adding printing of __FILE__ and __LINE__ to the diagnostics code,
I identified two bad TMP_SALLOC_LIMBS invocations in mpn/generic/mul.c.
These are now patched.

The code can still be improved in many ways, including trimming of

Please encrypt, key id 0xC8601622

More information about the gmp-devel mailing list