HomeFreeBSD

When bitpos can't be implemented with an inline ffs* instruction,

Description

When bitpos can't be implemented with an inline ffs* instruction,
change the binary search so that it does not depend on a single bit
only being set in the bitmask. Use bitpos more generally, and avoid
some clearing of bits to accommodate its current behavior.

Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D20232

Details

Provenance
dougmAuthored on
Differential Revision
D20232: Make bitpos() handle arguments with many set bits
Parents
rS347468: Add a (q)uit option to the subr_blist test program.
Branches
Unknown
Tags
Unknown