diff options
Diffstat (limited to 'big.c')
-rw-r--r-- | big.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -188,7 +188,7 @@ static struct big_div big__longdiv(word x, word y) } else if (lx == ly) { if (big_compare(x, y) >= 0) { - x = bigsub(x, y); + x = big_subtract(x, y); d = 1; } else { d = 0; @@ -201,15 +201,15 @@ static struct big_div big__longdiv(word x, word y) } if ((d -= 2) > 0) { - x = bigsub(x, big__stimes(y, d)); + x = big_subtract(x, big__stimes(y, d)); } else { d = 0; } if (big_compare(x, y) >= 0) { - x = bigsub(x, y), d++; + x = big_subtract(x, y), d++; if (big_compare(x, y) >= 0) { - x = bigsub(x, y); + x = big_subtract(x, y); d++; } } @@ -446,7 +446,7 @@ word big_add(word x, word y) } -word bigsub(word x, word y) +word big_subtract(word x, word y) { if (big_is_positive(x)) { if (big_is_positive(y)) { @@ -582,7 +582,7 @@ word big_remainder(word x, word y) if (s2) { if (!bigzero(bd.rem)) { - bd.rem = bigsub(y, bd.rem); + bd.rem = big_subtract(y, bd.rem); } } |