summaryrefslogtreecommitdiff
path: root/big.c
diff options
context:
space:
mode:
Diffstat (limited to 'big.c')
-rw-r--r--big.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/big.c b/big.c
index e895def..8c96896 100644
--- a/big.c
+++ b/big.c
@@ -494,7 +494,7 @@ int big_compare(word x, word y)
}
/* naive multiply - quadratic */
-word bigtimes(word x, word y)
+word big_multiply(word x, word y)
{
/* important optimisation */
if (big__len(x) < big__len(y)) {
@@ -610,9 +610,9 @@ word big_pow(word x, word y)
d = digit(y);
while (i--) {
if (d & 1) {
- r = bigtimes(r, x);
+ r = big_multiply(r, x);
}
- x = bigtimes(x, x);
+ x = big_multiply(x, x);
d >>= 1;
}
y = rest(y);
@@ -620,13 +620,13 @@ word big_pow(word x, word y)
d = digit(y);
if (d & 1) {
- r = bigtimes(r, x);
+ r = big_multiply(r, x);
}
while (d >>= 1) {
- x = bigtimes(x, x);
+ x = big_multiply(x, x);
if (d & 1) {
- r = bigtimes(r, x);
+ r = big_multiply(r, x);
}
}