bigint: Add count_bits and more prep.

This commit is contained in:
Jeroen van Rijn
2021-08-11 20:59:50 +02:00
parent dfd5a993a2
commit 905d5459a9
4 changed files with 41 additions and 20 deletions
-1
View File
@@ -89,7 +89,6 @@ add_digit :: proc(dest, a: ^Int, digit: DIGIT) -> (err: Error) {
If `a` is negative and `|a|` >= `digit`, call `dest = |a| - digit`
*/
if is_neg(a) && (a.used > 1 || a.digit[0] >= digit) {
fmt.print("a = neg, %v\n", print_int(a));
/*
Temporarily fix `a`'s sign.
*/