summaryrefslogtreecommitdiff
path: root/big.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-03-28 16:35:15 -0400
committerJakob Kaivo <jkk@ung.org>2022-03-28 16:35:15 -0400
commitfba0a90c7d18a2350d3a5f5da1d9b47c7763d557 (patch)
tree5f022d17e0850083df603660d854803185366be6 /big.c
parent8d2224f1227e8da595ff4db29d805908a91609bf (diff)
rename bignegate() to big_negate()
Diffstat (limited to 'big.c')
-rw-r--r--big.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/big.c b/big.c
index 8396d48..3d7f84b 100644
--- a/big.c
+++ b/big.c
@@ -417,7 +417,7 @@ long long big_toll(word x)
return (sign ? -n : n);
}
-word bignegate(word x)
+word big_negate(word x)
{
if (bigzero(x)) {
return x;
@@ -518,7 +518,7 @@ word bigtimes(word x, word y)
y = rest(y);
}
- return (s != big_is_negative(x) ? bignegate(r) : r);
+ return (s != big_is_negative(x) ? big_negate(r) : r);
}
/* may assume y~=0 */
@@ -586,7 +586,7 @@ word big_remainder(word x, word y)
}
}
- return (s1 ? bignegate(bd.rem) : bd.rem);
+ return (s1 ? big_negate(bd.rem) : bd.rem);
}
/* NB - above have entier based handling of signed cases (as Miranda) in