mpn_sizeinbase

bodrato at mail.dm.unipi.it bodrato at mail.dm.unipi.it
Sun Jun 24 20:39:49 CEST 2012


Ciao
Il Gio, 21 Giugno 2012 7:10 pm, bodrato at mail.dm.unipi.it ha scritto:
>> 2) gmp-impl.h defines the unused macro MPN_SIZEINBASE_16.

> I suggest to replace it with the macro MPN_SIZEINBASE_2EXP currently
> defined in mpz/export.c .

Pushed the change...

> This macro should be used also to count the size in bits, with base2exp=1,
> in e.g. mpz/n_pow_ui.c, mpz/get_d_2exp.c, mpn/rootrem.c, mpn/powlo.c ...

... and used the new macro somewhere in the code, where it was safe.

> But the question is: which type should we use for _SIZEINBASE internals?

Decided for mp_bitcnt_t in MPN_SIZEINBASE_2EXP.

Regards,
m

-- 
http://bodrato.it/software/strassen.html




More information about the gmp-devel mailing list