Eric Blake 0711c4b74d bitmap: add virBitmapCountBits
Sometimes it's handy to know how many bits are set.

* src/util/bitmap.h (virBitmapCountBits): New prototype.
(virBitmapNextSetBit): Use correct type.
* src/util/bitmap.c (virBitmapNextSetBit): Likewise.
(virBitmapSetAll): Maintain invariant of clear tail bits.
(virBitmapCountBits): New function.
* src/libvirt_private.syms (bitmap.h): Export it.
* tests/virbitmaptest.c (test2): Test it.
2012-10-25 11:19:23 -06:00
..
2012-04-02 09:33:54 -06:00
2012-09-24 17:04:46 -06:00
2012-09-17 14:59:37 -04:00
2011-12-01 13:49:20 -07:00
2011-06-30 18:04:02 +01:00
2011-07-11 09:21:37 -06:00
2012-10-25 11:19:23 -06:00