bitcount 0.1.0 copy "bitcount: ^0.1.0" to clipboard
bitcount: ^0.1.0 copied to clipboard

outdated

Efficient bit count.

bitcount #

Description #

More or less fast bit count (also known as popcount) extension for default int.

How to use #

import 'package:bitcount/bitcount.dart';

void main() {
  print(32.bitCount());        // 1
  print((32 - 1).bitCount());  // 5
}

License #

MIT

2
likes
0
pub points
66%
popularity

Publisher

unverified uploader

Efficient bit count.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on bitcount