Extending the mpn interface

bodrato at mail.dm.unipi.it bodrato at mail.dm.unipi.it
Sat Feb 16 11:43:03 CET 2013


PS:

Il Sab, 16 Febbraio 2013 11:08 am, bodrato at mail.dm.unipi.it ha scritto:
> Il Ven, 15 Febbraio 2013 3:51 pm, Niels Möller ha scritto:
>> /* Copy x, which must be at most xn limbs, to the {xp, xn} area,
>>    zero-padding if needed. Not sure what to do if x is too large to
>>    fit, or if x < 0. */
>> void
>> mpz_get_mpn (mp_limb_t *xp, mp_size_t xn, const mpz_t x);

Neither mpz_get_str nor mpz_export get the size as a parameter, both
assume that, if the pointer is not NULL, there is "enough space for the
data". Both return the pointer.

-- 
http://bodrato.it/toom-cook/



More information about the gmp-devel mailing list