]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/intarith: add popcount()
authorKefu Chai <kchai@redhat.com>
Tue, 27 Jul 2021 05:54:26 +0000 (13:54 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 27 Jul 2021 12:03:32 +0000 (20:03 +0800)
commit197368cfb01176a996d3e885118ef57f7db1917e
tree85677b42203a5fa8b5e25e505e41d204fdb34356
parent943b91a11bb1b6e9409d865f1ec6bfc3c3ae87a0
include/intarith: add popcount()

for counting "1" in an integer.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/intarith.h
src/test/test_intarith.cc