bigint: log_n for bases that fit within one DIGIT or are a power of two.

This commit is contained in:
Jeroen van Rijn
2021-08-11 20:59:50 +02:00
parent dbcd8da733
commit 767948ab46
3 changed files with 114 additions and 32 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ demo :: proc() {
fmt.printf("c: %v, bits: %v\n", cs, count_bits(c));
delete(as); delete(bs); delete(cs);
fmt.println("log2:", log_n(a, 8));
fmt.println("radix_size:", radix_size(a, 10));
}
main :: proc() {