Paolo Bonzini wrote:
>
>> I took a look. I don't think it would be hideously hacky to do
>> something like ...
>>
>> #define EXECUTE_IF_SET_IN_BITMAP(BITMAP, MIN, BITNUM, ITER) \
>> for ((BITMAP)->ro_flag = true, \
>> bmp_iter_set_init (&(ITER), (BITMAP), (MIN), &(BITNUM)); \
>> (BITMAP)->ro_flag = bmp_iter_set (&(ITER), &(BITNUM)); \
>> bmp_iter_next (&(ITER), &(BITNUM)))
>
> You should add a BREAK_FROM_EXECUTE_IF_SET(BITMAP) macro too, however.
>
> Paolo
:) I should, but I'm way too loaded at the moment to actually generate this
patch... already got two simultaneous testruns going that will tie up my PC
for a couple of days. Sorry.
cheers,
DaveK