Page MenuHomeFreeBSD

LinuxKPI: improve hweight<n> if complie time constant
ClosedPublic

Authored by bz on Tue, Jan 20, 10:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 25, 5:12 AM
Unknown Object (File)
Sat, Jan 24, 9:41 PM
Unknown Object (File)
Fri, Jan 23, 11:28 AM
Unknown Object (File)
Thu, Jan 22, 5:31 PM
Unknown Object (File)
Wed, Jan 21, 5:59 PM
Unknown Object (File)
Wed, Jan 21, 4:52 PM
Unknown Object (File)
Wed, Jan 21, 3:55 PM
Unknown Object (File)
Wed, Jan 21, 3:16 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