Re: [Qemu-devel] [RFC 05/29] bitmap: introduce bitmap_count_one()

2017-07-31 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > Count how many bits set in the bitmap. > > Signed-off-by: Peter Xu > --- > include/qemu/bitmap.h | 10 ++ > util/bitmap.c | 15 +++ > 2 files changed, 25 insertions(+) > > diff --git a/include/qemu/bitmap.h

[Qemu-devel] [RFC 05/29] bitmap: introduce bitmap_count_one()

2017-07-28 Thread Peter Xu
Count how many bits set in the bitmap. Signed-off-by: Peter Xu --- include/qemu/bitmap.h | 10 ++ util/bitmap.c | 15 +++ 2 files changed, 25 insertions(+) diff --git a/include/qemu/bitmap.h b/include/qemu/bitmap.h index 460d899..9c18da0 100644