mini-gmp mpz_addmul_ui and mpz_submul_ui
Torbjorn Granlund
tg at gmplib.org
Wed Apr 17 21:08:59 CEST 2013
nisse at lysator.liu.se (Niels Möller) writes:
I'm considering adding mpz_addmul_ui and mpz_submul_ui to mini-gmp.
OK...due to popular demand?
This can be implemented either
* in terms of mpn_addmul_1 and mpn_submul_1 (and then I also need the
additional primitives, mpn_mul_1c and mpn_neg). I have some untested
code, roughly 120 lines.
* in terms of mpz_mul_ui, mpz_add and mpz_sub, with an additional mpz_t
temporary. Would be at most 20 lines.
I have no strong opinion, but we should not forget the meaning of the
"mini" moniker.
--
Torbjörn
More information about the gmp-devel
mailing list