guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forwarded patch for modular exponentiation support (GMP powm)


From: Kevin Ryde
Subject: Re: Forwarded patch for modular exponentiation support (GMP powm)
Date: Tue, 10 Feb 2004 09:31:06 +1000
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

I wrote:
>
> Also, if m is negative

Oops, I meant the exponent k there.

> The case can be detected
> by mpz_invert, though it will be wasteful to do the same as what
> mpz_powm is about to do.

Actually, I think what you'll want is to call mpz_invert explicitly,
then mpz_powm with the inverse (when it exists) and the absolute value
of the exponent.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]