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, Jul 5, 6:46 PM
Unknown Object (File)
Sat, Jul 4, 3:24 AM
Unknown Object (File)
Fri, Jul 3, 10:58 PM
Unknown Object (File)
May 24 2026, 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
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