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
F151184105: D54806.id170378.diff
Mon, Apr 6, 4:14 PM
F151178328: D54806.diff
Mon, Apr 6, 3:15 PM
Unknown Object (File)
Fri, Mar 13, 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
Unknown Object (File)
Jan 30 2026, 10:22 PM
Unknown Object (File)
Jan 25 2026, 5:12 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