]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bitmap: add way to find next clear bit
authorEric Blake <eblake@redhat.com>
Sat, 2 Feb 2013 00:33:18 +0000 (17:33 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 5 Feb 2013 23:23:14 +0000 (16:23 -0700)
commit98fc0137f14929097df6525ef0bc8fab576cee0f
tree04830ccab9841939f977fbe65b9efe143fc2cbba
parent75fabbdf3f88ff16273e5d51375833877fe94812
bitmap: add way to find next clear bit

We had an easy way to iterate set bits, but not for iterating
cleared bits.

* src/util/virbitmap.h (virBitmapNextClearBit): New prototype.
* src/util/virbitmap.c (virBitmapNextClearBit): Implement it.
* src/libvirt_private.syms (bitmap.h): Export it.
* tests/virbitmaptest.c (test4): Test it.
src/libvirt_private.syms
src/util/virbitmap.c
src/util/virbitmap.h
tests/virbitmaptest.c