diff options
-rw-r--r-- | big.c | 12 | ||||
-rw-r--r-- | big.h | 2 | ||||
-rw-r--r-- | reduce.c | 2 |
3 files changed, 8 insertions, 8 deletions
@@ -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); } } @@ -37,7 +37,7 @@ word big_pow(word,word); word bigscan(char *); void bigsetup(void); word big_subtract(word,word); -word bigtimes(word,word); +word big_multiply(word,word); word bigtostr(word); word bigtostr8(word); word bigtostrx(word); @@ -2067,7 +2067,7 @@ L3: if(arg1==NIL)lexfail(lastarg); setdbl(e,get_dbl(arg1)*force_dbl(lastarg)); else if(tag[lastarg]==DOUBLE) setdbl(e,big_tod(arg1)*get_dbl(lastarg)); - else simpl(bigtimes(arg1,lastarg)); + else simpl(big_multiply(arg1,lastarg)); goto DONE; case READY(INTDIV): |