ΒΆinline unsigned int Log2_32(uint32_t Value)

Description

Return the floor log base 2 of the specified value, -1 if the value is zero. (32 bit edition.) Ex. Log2_32(32) == 5, Log2_32(1) == 0, Log2_32(0) == -1, Log2_32(6) == 2

Declared at: llvm/include/llvm/Support/MathExtras.h:623

Parameters

uint32_t Value