def bitmap.next_set

bend-osdev-algo@0.1.0.0 · bitmap.bend:60

import bend-osdev-algo@0.1.0.0/bitmap.bend as Bitmap
import Base

60# the first set bit at or after start and below size, or size
61def bitmap.next_set(words: List<&2, U32>, size: Nat, start: Nat) -> Nat:
62  bitseq.next(size, start, True{}, bitmap.bits(words))

Uses (6)

Used by (9)