On 02/04/2013 04:31 PM, Stefan Berger wrote:
> On 02/04/2013 03:53 PM, Eric Blake wrote:
>> On 02/01/2013 09:41 PM, Stefan Berger wrote:
>>> On 02/01/2013 09:16 PM, Eric Blake wrote:
>>> I definitely prefer the ARRAY_CARDINALITY() instead of npos in my
>>> version of the test. Beyond that, it looks
On 02/04/2013 03:53 PM, Eric Blake wrote:
On 02/01/2013 09:41 PM, Stefan Berger wrote:
On 02/01/2013 09:16 PM, Eric Blake wrote:
I definitely prefer the ARRAY_CARDINALITY() instead of npos in my
version of the test. Beyond that, it looks like your test copied and
pasted so that the set vs. cle
On 02/01/2013 09:41 PM, Stefan Berger wrote:
> On 02/01/2013 09:16 PM, Eric Blake wrote:
>> 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): Implemen
On 02/01/2013 09:16 PM, Eric Blake wrote:
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.
* t
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.
---