mpn_sizeinbase
Niels Möller
nisse at lysator.liu.se
Fri Jun 15 07:07:59 CEST 2012
bodrato at mail.dm.unipi.it writes:
> 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);
That seems quite awkward to me. I think it would make more sense to
document the contents of an mpz_t.
Regards,
/Niels
--
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
More information about the gmp-devel
mailing list