Re: Public mpz_ptr and mpz_srcptr

2013-05-02 Thread Niels Möller
ni...@lysator.liu.se (Niels Möller) writes: Here's another possible use of mpz pointers: And another one, I just stumbled upon: Passing mpz_t to varargs functions, mpz_srcptr n = va_arg(args, mpz_srcptr); (I just edited that line to use mpz_srcptr. When I wrote the previous version 10 years

Re: _basecase or _sec? [

2013-05-02 Thread Niels Möller
Torbjorn Granlund t...@gmplib.org writes: I see the need of the following: function mul gcdext add, sub mod (div_r_sec) is more important than general division. And modular inverse is more important than general gcdext. I've also seen some need for add_1/sub_1.

Re: _basecase or _sec? [

2013-05-02 Thread Torbjorn Granlund
I started a web page on this: gmplib.org/devel/sec.html Feel free to make changes as usual. -- Torbjörn ___ gmp-devel mailing list gmp-devel@gmplib.org http://gmplib.org/mailman/listinfo/gmp-devel

Re: _basecase or _sec? [

2013-05-02 Thread Niels Möller
Torbjorn Granlund t...@gmplib.org writes: Hmm...can one use Newton for any a^(-1) mod b (when that exists)? (I listed gcdext for the sake of inverses, and omitted gcd.) I think Newton analogues exist only when b is a power, not in general. And the most important case is prime b. I am not