Function pleco::bit_twiddles::popcount64 [] [src]

pub fn popcount64(x: u64) -> u8

Counts the number of bits

Examples

use pleco::bit_twiddles::*;

assert_eq!(popcount64(0b1001), 2);