bitmap: introduce bitmap_count_one()
commitfc7deeea26af3d08f45bad85b8bd3fc3d790a090
authorPeter Xu <peterx@redhat.com>
Wed, 30 Aug 2017 08:31:59 +0000 (30 16:31 +0800)
committerJuan Quintela <quintela@redhat.com>
Fri, 22 Sep 2017 12:11:24 +0000 (22 14:11 +0200)
treeca91cb9b106b244d641bfd07d06d52cef7c9459c
parentab089e058eb443a9a11ade4d3fc57ced1947bfa3
bitmap: introduce bitmap_count_one()

Count how many bits set in the bitmap.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/qemu/bitmap.h
util/bitmap.c