Patch to allow more granular aborting.

Niels Möller nisse at
Tue Mar 15 07:42:51 CET 2011

Theo Schlossnagle <jesus at> writes:

> gmp-impl.h defines:
> 1753 #define MPZ_REALLOC(z,n) (UNLIKELY ((n) > ALLOC(z))     \
> 1754                           ? (mp_ptr) _mpz_realloc(z,n)  \
> 1755                           : PTR(z))
> which bypasses any replacement of __gmp_reallocate_func.

That's not bypassing it, as far as I can see. If reallocation is needed,
it calls _mpz_realloc (mpz/realloc.c), which should do the right thing,


Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list