Maximum number of bits in an mpz_t

Torbjorn Granlund tg at
Sat Apr 24 19:00:22 CEST 2004

Roberto Bagnara <bagnara at> writes:

  is there a portable way for an application using GMP's
  mpz_t (seen as a collection of bits) to know the maximum
  number of bits a mpz_t can handle?
I am afraid I don't understand your question.

An mpz_t allocates more memory as the value "needs more bits",
which makes the available swap space and setrlimit-style
resource caps the the only limits.


More information about the gmp-discuss mailing list