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...
But for base-256 conversion, mpz_export is perfect.
--
Torbjörn
___
Hi Niels, Torbjörn, Marco,
> 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...
since that discussion has no longer to do with mpfr, please follow-up to
gmp
Ciao Niels!
Happy new year! :-)
Il Lun, 9 Gennaio 2012 4:02 pm, Niels Möller ha scritto:
> Torbjorn Granlund 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
[ Adding the gmp-devel list. ]
Torbjorn Granlund 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 wh