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, Feb 22, 3:35 AM
Unknown Object (File)
Sun, Feb 8, 11:27 AM
Unknown Object (File)
Mon, Feb 2, 2:01 AM
Unknown Object (File)
Fri, Jan 30, 10:22 PM
Unknown Object (File)
Jan 25 2026, 5:12 AM
Unknown Object (File)
Jan 24 2026, 9:41 PM
Unknown Object (File)
Jan 23 2026, 11:28 AM
Unknown Object (File)
Jan 22 2026, 5:31 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