Memory allocation of mpz_init

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

Hans Aberg <haberg-1 at> 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.  


More information about the gmp-discuss mailing list