mpz_add_si (was: Re: mpz_prevprime)

Niels Möller nisse at
Fri Oct 16 07:10:06 UTC 2020

"Marco Bodrato" <bodrato at> writes:

>>>   mpz_add_si (p, p, diff * (odds_in_composite_sieve-1));
> We don't have such a function :-)


Maybe we should have? We do have both _ui and _si versions of other
basic mpz functions, including mpz_set, mpz_mul, and mpz_cmp.


Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list