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
F157710017: D54806.diff
Sun, May 24, 8:23 AM
Unknown Object (File)
Wed, May 6, 8:24 AM
Unknown Object (File)
Tue, May 5, 6:37 PM
Unknown Object (File)
Sat, May 2, 5:28 PM
Unknown Object (File)
Wed, Apr 29, 3:30 AM
Unknown Object (File)
Wed, Apr 29, 3:23 AM
Unknown Object (File)
Tue, Apr 28, 7:02 AM
Unknown Object (File)
Mon, Apr 27, 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