6.0.0 crash at high precision mul?
Torbjörn Granlund
tg at gmplib.org
Fri Jun 6 15:41:37 UTC 2014
bodrato at mail.dm.unipi.it writes:
... mul should allocate it all at once...
I suppose mul/generic/mul.c could be improved wrt allocation:
#define ITCH (16*vn + 100)
We then use this large allocation with TMP_SALLOC_LIMBS.
We later use an unmotivated mix of TMP_ALLOC_LIMB and TMP_SALLOC_LIMBS.
This function's allocation scheme seems poor in several ways.
Torbjörn
Please encrypt, key id 0xC8601622
More information about the gmp-discuss
mailing list