_mp_alloc vs ALLOC

Torbjorn Granlund tg at gmplib.org
Mon Jun 4 18:32:17 CEST 2012


Pedro Gimeno <p.gimeno at formauri.es> writes:

  My recollection is that gmp_errno was not thread-safe, not just
  obsolete, and that that was a reason for getting rid of it.
  
Making some C error handling mechanism would be great, though.  I am not
sure that's easy, though.  "For error handling, use C++"?

  Also, I seem to remember there were plans to make a new version of
  mpz_nextprime accepting a random state and the number of M-R tests, and
  of mpz_probab_prime_p accepting a random state. Of course, these could
  just be new functions.
  
I think new functions would be best, with old ones kept for
compatibility.

-- 
Torbjörn


More information about the gmp-devel mailing list