We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7b8f8 commit 0119211Copy full SHA for 0119211
arithmetic-coding-core/src/bitstore.rs
@@ -35,7 +35,7 @@ impl BitStore for u32 {
35
const ZERO: Self = 0;
36
37
fn log2(self) -> u32 {
38
- u32::log2(self)
+ u32::ilog2(self)
39
}
40
41
@@ -45,7 +45,7 @@ impl BitStore for u64 {
45
46
47
48
- u64::log2(self)
+ u64::ilog2(self)
49
50
51
@@ -55,6 +55,6 @@ impl BitStore for u128 {
55
56
57
58
- u128::log2(self)
+ u128::ilog2(self)
59
60
0 commit comments