HomeFreeBSD

dev/mana: replace power2 function

Description

dev/mana: replace power2 function

Replace is_power_of_2(length) with power2(length). When length != 0, as in
this case, they produce the same result. This will allow an implementation
of is_power_of_two to be dropped.

Reviewed by: alc, markj
Differential Revision: https://reviews.freebsd.org/D45536

Details

Provenance
dougmAuthored on Jun 24 2024, 6:55 AM
Reviewer
alc
Differential Revision
D45536: log2: move log2 related functions from kpi to libkern
Parents
rG88478cc02a20: i386 kernel __storeload_barrier: quiet gcc -Warray-bounds
Branches
Unknown
Tags
Unknown