Add mpz_inp_str to mini-gmp
tg at gmplib.org
Fri Jul 8 11:47:22 UTC 2016
nisse at lysator.liu.se (Niels Möller) writes:
That's no big deal for mini-gmp, it's not intended to be used for huge
numbers, or make a lot of effort to be as efficient. Which of course is
a judgement call.
Reading to a buffer rather than convert on-the-fly makes sense iff
mpz_set_str somehow makes tricks for better performance (such as
clumping characters into limbs to avoid most bignum operations, or using
some o(n^2) algorithm).
Please encrypt, key id 0xC8601622
More information about the gmp-devel