Otherwise, if you really, really, need it.
Ezze Tabi
ezzetabi at hotmail.com
Sat Oct 18 13:10:40 CEST 2008
Just implement it yourself...
>I guess it was more from a convenience point of view since I was using
>mpz_t variables. I think I could just re-write my code to just store
>the exponent value as an unsigned long and would be fine so I wouldn't
>need an extra mpz_get_ui() call. The result of course would still
>need to be stored in mpz but not every variable.
Using the gmp C interface you should be able of implement the squaring method with easy.
http://en.wikipedia.org/wiki/Exponentiating_by_squaring#Squaring_algorithm
etb
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
More information about the gmp-discuss
mailing list