llvm::ConstantLog2

Compile time Log2. Valid only for positive powers of two.

Synopsis

Declared in <llvm/Support/MathExtras.h>

template<size_t kValue>
constexpr
size_t
ConstantLog2();

Return Value

The base-2 logarithm of kValue.