tools: introduce test_and_clear_bit
authorPeter Xu <peterx@redhat.com>
Wed, 22 Aug 2018 07:19:56 +0000 (15:19 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Aug 2018 14:48:36 +0000 (16:48 +0200)
commit07a262cc7c586e3f385a61b8870b0913bf31309a
tree811be68591ad09d41e9a898c5ae95912d8491392
parent024d83cadc6b2af027e473720f3c3da97496c318
tools: introduce test_and_clear_bit

We have test_and_set_bit but not test_and_clear_bit.  Add it.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/include/linux/bitmap.h