bitmap: Implement bitmap_ffs()
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 2 Oct 2014 14:15:00 +0000 (00:15 +1000)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Oct 2014 02:45:44 +0000 (13:15 +1030)
commitf591ef48f887f6c1608cdd89d78eebacd27e8552
tree6d6124356f2fd4ed47e7aad73bbd910d394a9db7
parentb9c9f5d934cda9717e373824e81670ec075fe001
bitmap: Implement bitmap_ffs()

This adds a bitmap_ffs() function to find the first (by the usual bitmap
bit ordering) 1 bit in a bitmap between two given bits.

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