HomeFreeBSD

gdma: use ispower2

Description

gdma: use ispower2

It's faster to use ispower2(n) than it is to compute
roundup_pow_of_two and do a comparison. So do the former.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D46838

Details

Provenance
dougmAuthored on Sep 28 2024, 9:17 PM
Reviewer
kib
Differential Revision
D46838: roundup_pow_of_two: use ispower instead
Parents
rGcbc9438f0505: tcp: improve ref count handling when processing SYN
Branches
Unknown
Tags
Unknown