aboutsummaryrefslogtreecommitdiff
path: root/src/big_int.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-07-28 19:44:00 +0100
committergingerBill <bill@gingerbill.org>2018-07-28 19:44:00 +0100
commit1705ba806905bfbfd2352767ad95a0d1c0376090 (patch)
treec608e40b5c83c9310bac97366a7a4cdfa3351926 /src/big_int.cpp
parent8d2c4a78a19774d98f5603d78ab6520f39d18bcd (diff)
Fix typos
Diffstat (limited to 'src/big_int.cpp')
-rw-r--r--src/big_int.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/big_int.cpp b/src/big_int.cpp
index fada34115..9e18fb783 100644
--- a/src/big_int.cpp
+++ b/src/big_int.cpp
@@ -96,7 +96,7 @@ void big_int_and (BigInt *dst, BigInt const *x, BigInt const *y);
void big_int_and_not(BigInt *dst, BigInt const *x, BigInt const *y);
void big_int_xor (BigInt *dst, BigInt const *x, BigInt const *y);
void big_int_or (BigInt *dst, BigInt const *x, BigInt const *y);
-void big_int_not (BigInt *dst, BigInt const *x);
+void big_int_not (BigInt *dst, BigInt const *x, u64 bit_count, bool is_signed);
void big_int_add_eq(BigInt *dst, BigInt const *x);
@@ -1230,7 +1230,7 @@ void big_int_or(BigInt *dst, BigInt const *x, BigInt const *y) {
if (x->neg == y->neg) {
if (x->neg) {
- // (-x) || (-y) == ~(x-1) | ~(y-1) == ~((x-1) & (y-1)) == -(((x-1) & (y-1)) + 1)
+ // (-x) | (-y) == ~(x-1) | ~(y-1) == ~((x-1) & (y-1)) == -(((x-1) & (y-1)) + 1)
BigInt x1 = big_int_make_abs(x);
BigInt y1 = big_int_make_abs(y);
big_int_sub_eq(&x1, &BIG_INT_ONE);
@@ -1285,7 +1285,7 @@ void big_int_or(BigInt *dst, BigInt const *x, BigInt const *y) {
}
-void bit_int_not(BigInt *dst, BigInt const *x, u64 bit_count, bool is_signed) {
+void big_int_not(BigInt *dst, BigInt const *x, u64 bit_count, bool is_signed) {
if (bit_count == 0) {
big_int_from_u64(dst, 0);
return;