From b685352ab7b7567064725a13c8cc92e71010aa6f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 28 Mar 2022 16:37:33 -0400 Subject: rename bigsub() to big_subtract() --- big.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'big.c') diff --git a/big.c b/big.c index 675635a..e895def 100644 --- a/big.c +++ b/big.c @@ -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); } } -- cgit v1.2.1