summaryrefslogtreecommitdiff
path: root/mpz/powm_ui.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-12-24 00:06:55 +0100
committerKevin Ryde <user42@zip.com.au>2000-12-24 00:06:55 +0100
commitdce108658eaa436a1e82df1c4ada2bbd36b5d071 (patch)
tree1faa5ee4f5d17d767f65690375c53e8f4a9eab17 /mpz/powm_ui.c
parent44531c849e7b1dc4b533e4a72677cf7eba63e973 (diff)
downloadgmp-dce108658eaa436a1e82df1c4ada2bbd36b5d071.tar.gz
* mpn/generic/sqrtrem.c, mpz/pow_ui.c, mpz/powm_ui.c, mpf/get_str.c,
mpf/set_str.c: Use mpn_sqr_n when applicable, not mpn_mul_n.
Diffstat (limited to 'mpz/powm_ui.c')
-rw-r--r--mpz/powm_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/powm_ui.c b/mpz/powm_ui.c
index f4e8a2dc8..e35e18bd4 100644
--- a/mpz/powm_ui.c
+++ b/mpz/powm_ui.c
@@ -168,7 +168,7 @@ mpz_powm_ui (res, base, exp, mod)
mp_ptr tp;
mp_size_t xsize;
- mpn_mul_n (xp, rp, rp, rsize);
+ mpn_sqr_n (xp, rp, rsize);
xsize = 2 * rsize;
xsize -= xp[xsize - 1] == 0;
if (xsize > msize)