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
F154651568: D54806.id170378.diff
Wed, Apr 29, 3:30 AM
F154648370: D54806.id170378.diff
Wed, Apr 29, 3:23 AM
Unknown Object (File)
Tue, Apr 28, 7:02 AM
Unknown Object (File)
Mon, Apr 27, 8:41 PM
Unknown Object (File)
Mon, Apr 27, 3:35 PM
Unknown Object (File)
Sat, Apr 18, 6:57 AM
Unknown Object (File)
Wed, Apr 15, 4:57 AM
Unknown Object (File)
Tue, Apr 14, 9:05 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