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)
Sun, May 24, 8:23 AM
Unknown Object (File)
May 6 2026, 8:24 AM
Unknown Object (File)
May 5 2026, 6:37 PM
Unknown Object (File)
May 2 2026, 5:28 PM
Unknown Object (File)
Apr 29 2026, 3:30 AM
Unknown Object (File)
Apr 29 2026, 3:23 AM
Unknown Object (File)
Apr 28 2026, 7:02 AM
Unknown Object (File)
Apr 27 2026, 8:41 PM
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