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)
Mon, Oct 5, 10:24 PM
Unknown Object (File)
Mon, Oct 5, 9:01 AM
Unknown Object (File)
Sun, Oct 4, 1:03 AM
Unknown Object (File)
Sat, Oct 3, 8:56 PM
Unknown Object (File)
Sat, Oct 3, 1:01 AM
Unknown Object (File)
Fri, Oct 2, 7:41 PM
Unknown Object (File)
Sun, Sep 13, 5:52 PM
Unknown Object (File)
Sat, Sep 12, 6:45 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 Not Applicable
Unit
Tests Not Applicable