On Fri, 8 Jun 2012, bodr...@mail.dm.unipi.it wrote:
Ciao,
Il Sab, 2 Giugno 2012 9:21 pm, bodr...@mail.dm.unipi.it ha scritto:
"mark" the possible uses with a different macro. So that we can count how
many times, and see where, we might need the no-copy-realloc.
Macro created, nothing changed in the library, unless we WANT_ASSERT.
((mp_ptr) res)[0] = ~ ((mp_ptr) res)[ALLOC (z) - 1];
Won't valgrind complain about an uninitialized read here?
I think mpz_neg is a candidate for MPZ_NEWALLOC.
--
Marc Glisse
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
http://gmplib.org/mailman/listinfo/gmp-devel