From: Alberto Bertogli Date: Wed, 5 Oct 2005 07:36:36 +0000 (+0000) Subject: Hacer que pot_ko() use karatsuba(). X-Git-Tag: Entrega_1~11 X-Git-Url: https://git.llucax.com/z.facultad/75.29/dale.git/commitdiff_plain/e8b0d199a673336678ee14b95bd250543a8673c0 Hacer que pot_ko() use karatsuba(). --- diff --git a/src/number.h b/src/number.h index 6980c1f..e9b821f 100644 --- a/src/number.h +++ b/src/number.h @@ -754,7 +754,7 @@ number < N, E > pot_ko(number< N, E > &u, number< N, E > &v) res.sign = u.sign; for (i = 1; i < v; i += 1) { - res *= u; + res = karatsuba(res, u); } return res;