[MPFR] MPFR and mini-gmp

bodrato at mail.dm.unipi.it bodrato at mail.dm.unipi.it
Mon Jan 9 18:02:57 CET 2012


Ciao Niels!

Happy new year! :-)

Il Lun, 9 Gennaio 2012 4:02 pm, Niels Möller ha scritto:
> Torbjorn Granlund <tg at gmplib.org> writes:
>
>> I'd like to deprecate mpz_getlimbn i favour of (a planned)
>> mpz_getnth_ui, since I'd like to get rid of the limb abstraction of any
>> public high level interfaces.
>
> In nettle, I use mpz_getlimbn for conversion to base 256 (and that's why
> I use it in the configure test). Maybe I could use mpz_export instead,

> I think there would be some use for base 256 conversion on the mpz
> level.

I agree with Torbjorn. For base 256 conversion, the function mpz_getnth_ui
he proposes is far better than the current mpz_getlimbn, because of the
possible internal use of nails...

Regards,
Marco

-- 
http://bodrato.it/papers/



More information about the gmp-devel mailing list