popCount property
int
get
popCount
The number of set bits (1s) in the binary representation.
Implementation
int get popCount {
int count = 0;
BigInt value = _converter.bits;
while (value != BigInt.zero) {
if ((value & BigInt.one) == BigInt.one) count++;
value >>= 1;
}
return count;
}