bitcount 0.3.0 bitcount: ^0.3.0 copied to clipboard
Provides efficient one-bits count method extension for default int.
import 'package:bitcount/bitcount.dart';
void main() {
print('one bits in 32: ${32.bitCount()}'); // 1
print('one bits in 31: ${(32 - 1).bitCount()}'); // 5
}