Page MenuHomeFreeBSD

LinuxKPI: improve hweight<n> if complie time constant
ClosedPublic

Authored by bz on Jan 20 2026, 10:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 15, 4:57 AM
Unknown Object (File)
Tue, Apr 14, 9:05 AM
Unknown Object (File)
Mon, Apr 6, 4:14 PM
Unknown Object (File)
Mon, Apr 6, 3:15 PM
Unknown Object (File)
Mar 13 2026, 3:50 PM
Unknown Object (File)
Feb 22 2026, 3:35 AM
Unknown Object (File)
Feb 8 2026, 11:27 AM
Unknown Object (File)
Feb 2 2026, 2:01 AM
Subscribers

Details

Summary

rtw89(4) uses a static_assert() with hweight<n> calls. In order to
avoid compile time errors, deal with the case when the arguments to
hweight<n> are complie time constant.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70031
Build 66914: arc lint + arc unit