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)
Wed, Aug 26, 4:08 PM
Unknown Object (File)
Tue, Aug 25, 12:07 AM
Unknown Object (File)
Fri, Aug 21, 3:37 PM
Unknown Object (File)
Thu, Aug 20, 9:16 PM
Unknown Object (File)
Tue, Aug 18, 11:18 PM
Unknown Object (File)
Sun, Aug 16, 11:34 PM
Unknown Object (File)
Thu, Aug 13, 2:19 AM
Unknown Object (File)
Wed, Aug 12, 4:19 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