bt_range
extern int bt_range(const ulong_t *, size_t *, size_t *, size_t);
while (bt_range(bitmap, &pos1, &pos2, end_pos)) {