HomeFreeBSD

bitset: Reimplement BIT_FOREACH_IS(SET|CLR)

Description

bitset: Reimplement BIT_FOREACH_IS(SET|CLR)

Eliminate the nested loops and re-implement following a suggestion from
rlibby.

Add some simple regression tests.

Reviewed by: rlibby, kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32472

Details

Provenance
markjAuthored on Oct 16 2021, 1:38 PM
Reviewer
rlibby
Differential Revision
D32472: bitset: Reimplement BIT_FOREACH_IS(SET|CLR)
Parents
rG36e4dcf47d45: safexcel: Set the context record unconditionally
Branches
Unknown
Tags
Unknown