Return the base 2 logarithm of a 32-bit value rounded down, or -1 when
the value is 0, like Linux does.
Sponsored by: The FreeBSD Foundation
Differential D61904
LinuxKPI: Add __ilog2_u32() Authored by siri_racha.ca on Sun, Nov 22, 4:35 AM.
Details
Return the base 2 logarithm of a 32-bit value rounded down, or -1 when Sponsored by: The FreeBSD Foundation
Diff Detail
|