[−][src]Function pleco::core::bit_twiddles::popcount64
pub fn popcount64(x: u64) -> u8
Counts the number of bits
Examples
use pleco::core::bit_twiddles::*; assert_eq!(popcount64(0b1001), 2);
pub fn popcount64(x: u64) -> u8
Counts the number of bits
use pleco::core::bit_twiddles::*; assert_eq!(popcount64(0b1001), 2);