]> git.saurik.com Git - redis.git/commit
popcount() optimization for speed.
authorantirez <antirez@gmail.com>
Sat, 19 May 2012 22:49:35 +0000 (00:49 +0200)
committerantirez <antirez@gmail.com>
Thu, 24 May 2012 13:19:58 +0000 (15:19 +0200)
commit343d3bd287b701ff3900527b5c920092f66fb592
tree4d5eecd51c1de9c3cfd53608a0e81433e5e274c9
parentdbbbe49ef57c5c000469e206c81e5da58bf604ba
popcount() optimization for speed.

We run the array by 32 bit words instead of processing it byte per byte.
If the code is compiled using GCC __builtin_popcount() builtin function
is used instead.
src/bitop.c