speed of mpz_odd_p and lazy allocation

Marc Glisse marc.glisse at inria.fr
Mon Aug 13 17:18:51 CEST 2012

On Mon, 13 Aug 2012, bodrato at mail.dm.unipi.it wrote:

> Ciao,
> Il 12 Agosto 2012 10:07 pm, Niels ha scritto:
>> Why do you want to do that change now? If you'd prefer to have GMP
>> never dereference mp_d when mp_size == 0, then I think we ought to
>> discuss that.
> There are places in the code where mp_d[0] is written disregard of
> previous value of size and alloc... (E.g. try $ grep -C2 "PTR *(.)\[0\]
> *=" mpz/*.c )

Note that read and write are 2 distinct issues (the answer can be the same 

Marc Glisse

More information about the gmp-devel mailing list