Skip to content

pombredanne/hamming_weight

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hamming_weight

C library to compute the Hamming weight of arrays. The Hamming weight is the number of ones in a stream of bits. Computing this count quickly has important applications in indexing, machine learning and so forth.

Usage

make
./unit
./basic_benchmark

If a CPU doesn't support AVX2 define SSE. If a CPU doesn't support popcnt instruction then define NOPOPCNT.

export SSE=1 NOPOPCNT=1; make
./basic_benchmark

About

C library to compute the Hamming weight of arrays

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.1%
  • Makefile 1.1%
  • Other 0.8%