3 ms·
> I tested it was working by counting the bits and someone critizised it for not using popcount PSA: Rust exposes the popcnt intrinsic via the `count_ones` met
by kibwen 7mo ago
> I tested it was working by counting the bits and someone critizised it for not using popcount
PSA: Rust exposes the popcnt intrinsic via the `count_ones` method on integer types: https://doc.rust-lang.org/std/primitive.u32.html#method.count_ones https://doc.rust-lang.org/std/primitive.u32.html#method.coun...
- Lerc 7mo agoLooks like that was added about 3 years after I wrote my test code.