HomeFreeBSD

mlx4: use is_power_of_2

Description

mlx4: use is_power_of_2

It's faster to use is_power_of_2 than it is to compute
roundup_power_of_two and then compare. So do that.

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

Details

Provenance
dougmAuthored on Sep 28 2024, 9:23 PM
Reviewer
kib
Differential Revision
D46838: roundup_pow_of_two: use ispower instead
Parents
rG65c4ec887eec: gdma: use ispower2
Branches
Unknown
Tags
Unknown