diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2009-12-23 05:27:55 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2009-12-23 05:27:55 +0100 |
commit | 09103509a876320e3e5b26bc0644a632a0326f6f (patch) | |
tree | 56794b37a22adbf2e343fe41d9c7788534853f03 /mpz/powm.c | |
parent | 3ed9945d9834253cbc761693a60742918eaf8488 (diff) | |
download | gmp-09103509a876320e3e5b26bc0644a632a0326f6f.tar.gz |
Add some comments.
Diffstat (limited to 'mpz/powm.c')
-rw-r--r-- | mpz/powm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mpz/powm.c b/mpz/powm.c index 8a3cd416f..29b0132c4 100644 --- a/mpz/powm.c +++ b/mpz/powm.c @@ -168,6 +168,7 @@ pow (mpz_srcptr b, mpz_srcptr e, mpz_srcptr m, mpz_ptr r) if (ncnt != 0) { + /* We will call both mpn_powm and mpn_powlo. */ /* rp needs n, mpn_powlo needs 4n, the 2 mpn_binvert might need more */ mp_size_t n_largest_binvert = MAX (ncnt, nodd); mp_size_t itch_binvert = mpn_binvert_itch (n_largest_binvert); @@ -175,6 +176,7 @@ pow (mpz_srcptr b, mpz_srcptr e, mpz_srcptr m, mpz_ptr r) } else { + /* We will call just mpn_powm. */ mp_size_t itch_binvert = mpn_binvert_itch (nodd); itch = n + MAX (itch_binvert, 2 * n); } |