Discrete logarithms, multiplicative orders, in GMP?

Andreas Enge andreas.enge at inria.fr
Thu Jul 12 19:24:06 CEST 2012

On Thu, Jul 12, 2012 at 05:05:45PM +1000, Alasdair McAndrew wrote:
> I can use (and have used) libpari in a C program,  but the trouble of
> mixing libpari and gmp is all the conversions between the PARI type GEN, C
> types unsigned long etc, and GMP mpz_t.   It'd be much more convenient to
> have one library which does it all.

There is a simple solution then: Use only pari. You may compile it to
use the gmp library for its internal multiprecision arithmetic, or simply
let it use its built-in arithmetic.


More information about the gmp-discuss mailing list