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/D20237

Details

Provenance
dougmAuthored on
Differential Revision
D20237: Make bitpos() handle arguments with many set bits, no GENERIC
Parents
rS347483: tuntap: Improve style
Branches
Unknown
Tags
Unknown