Skip to content

yuvalif/bmapc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bmapc

Bitmap Count provide a function that calculates the number of 1-bits in a bitmap. Function is optimized for the case where the array size is divisable by size of int, then it uses the compiler builtin function: __builtin_popcount (available in gcc and clang). If a different compiler need to be used, this project: https://github.com/Noctune/bitcount provide a more general implementation of the popcount function.

Use the folowing command to build the test: g++ -Wall -o test_bitcount test_bitcount.cpp bitcount.cpp

About

bit counter for bitmaps

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages