HomeFreeBSD

roundup_pow_of_two: don't take the log of it

Description

roundup_pow_of_two: don't take the log of it

Based on the definitions, ilog2(roundup_pow_of_two(x)) ==
order_base_2(x). Replace the former with the latter in a few places to
save a few calculations.

Reviewed by: bz, kib
Differential Revision: https://reviews.freebsd.org/D46827

Details

Provenance
dougmAuthored on Sep 28 2024, 5:00 PM
Reviewer
bz
Differential Revision
D46827: roundup_pow_of_two: don't take the log of it
Parents
rG6ffd4aeba5b9: pf tests: add a test for max-src-conn
Branches
Unknown
Tags
Unknown