Memory allocation of mpz_init

Torbjorn Granlund tg at gmplib.org
Thu Nov 17 11:21:44 CET 2011


Hans Aberg <haberg-1 at telia.com> writes:

  Why is mpz_init() allocating memory? Is it an optimization, or does
  programming of other functions becoming more convenient?
  
It allocates memory in order to make space for limbs.  

-- 
Torbjörn


More information about the gmp-discuss mailing list