Page MenuHomeFreeBSD

Make bitpos() handle arguments with many set bits, no GENERIC
ClosedPublic

Authored by dougm on May 11 2019, 2:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 4, 1:53 AM
Unknown Object (File)
Sep 22 2024, 9:36 AM
Unknown Object (File)
Sep 19 2024, 3:06 PM
Unknown Object (File)
Sep 8 2024, 12:23 PM
Unknown Object (File)
Sep 8 2024, 4:01 AM
Unknown Object (File)
Sep 7 2024, 1:19 PM
Unknown Object (File)
Sep 1 2024, 6:54 AM
Unknown Object (File)
Dec 19 2023, 8:45 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Maybe this undo/redo was unnecessary, but when I checked in the quick fix, I got a *reject* email about the lack of a reviewer, so I assumed the checkin didn't happen. Maybe that's wrong.

So _Generic did not worked because of gcc 4.2.1. It might require some time for 4.2.1 to be expunged on tier2.

This revision is now accepted and ready to land.May 11 2019, 9:06 AM
This revision was automatically updated to reflect the committed changes.