mpz_limbs interface
bodrato at mail.dm.unipi.it
bodrato at mail.dm.unipi.it
Sat Feb 8 06:14:35 UTC 2014
Ciao,
Il Gio, 6 Febbraio 2014 2:08 pm, Niels ha scritto:
> Personally, I feel a bit easier about adding feature close to release,
> than about rewriting code for existing features.
So, maybe we can discuss about adding a new function to the _limbs interface:
mp_ptr
mpz_init_limbs_write (mpz_t x, mp_size_t n)
{
ALLOC (x) = n;
PTR (x) = (mp_ptr) (*__gmp_allocate_func) (n*GMP_LIMB_BYTES);
SIZ (x) = 0;
return PTR (x);
}
Regards,
m
--
http://bodrato.it/
More information about the gmp-devel
mailing list