New mpz_lucas... functions

Wes Freeman freeman.wes at gmail.com
Thu Jul 21 16:53:03 CEST 2011


On Thu, Jul 21, 2011 at 8:11 AM, David Cleaver <wraithx at morpheus.net> wrote:
>
> I've changed the parameters p and q to be long ints, and I've changed k to
> be an mpz_t.  So the new function prototypes look like:
>
> int mpz_lucasu(mpz_t rop, long int p, long int q, mpz_t k)
> int mpz_lucasumod(mpz_t rop, long int p, long int q, mpz_t k, mpz_t n)
> int mpz_lucasv(mpz_t rop, long int p, long int q, mpz_t k)
> int mpz_lucasvmod(mpz_t rop, long int p, long int q, mpz_t k, mpz_t n)
>

Excellent! Thanks for the mpz_t k. Nice speed increases, too.

Wes


More information about the gmp-discuss mailing list