New function mpz_init_setbit
Torbjörn Granlund
tg at gmplib.org
Thu Jun 25 17:57:07 CEST 2026
> I suppose that the name should be mpz_set_2exp, for consistency?
>
I think that every function that initialize an mpz_t should have mpz_init_ as a prefix.
And since mpz_init_setbit would be equivalent to mpz_init followed by mpz_setbit,
I proposed this name.
I meant mpz_init_set_2exp.
But mpz_init_setbit is fine to.
--
Torbjörn
Please encrypt, key id 0xC8601622
More information about the gmp-devel
mailing list