bodrato at bodrato at
Thu Jun 14 22:21:38 CEST 2012


Il Gio, 14 Giugno 2012 9:57 pm, Niels Möller ha scritto:
> bodrato at writes:
>> 1) mpz/generic/sizeinbase.c is unused.
> s/mpz/mpn/, right?


> Also the documentation for mpn_get_str ought to be revised, and the
> revised version ought to refer to mpn_sizeinbase as the recommended
> method for figuring out the space needed.

About documentation... shall we explicitly document a supported way to
obtain an mpn form an mpz, and viceversa? The following should always
work, right?

/* {np, nn} <- |z| */
mpz_export (np, &nn, -1, sizeof(mp_limb_t), 0, sizeof(mp_limb_t) * 8 -
mp_bits_per_limb, z);



More information about the gmp-devel mailing list