bitmap: Add functions to set/clear ranges of bits
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 2 Oct 2014 14:14:58 +0000 (00:14 +1000)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Oct 2014 02:45:44 +0000 (13:15 +1030)
commit4e7f97a92ef78a956425f8d0d03e57230e131618
treefc5d743847529e50fb93ccde28f1dec030f0571e
parentd91a3b8b416ed12bf7c0d5b0bda902b7ae769a40
bitmap: Add functions to set/clear ranges of bits

Add bitmap_zero_range() and bitmap_fill_range() functions which will set
a contiguous range of bits in the bitmap to 0 or 1.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/bitmap/bitmap.c [new file with mode: 0644]
ccan/bitmap/bitmap.h
ccan/bitmap/test/run-ranges.c [new file with mode: 0644]
ccan/bitmap/test/run.c