]> 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:24:31 +0000 (15:24 +0200)
commitd12a68d4158ba308b3e153158a0affa80c5fa9eb
treefa886fe0bb65f30df96d7b555f48aaced8c5bd83
parent7ffa248c7cc53d1b84dfbad2149965efcd6a72f5
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