ΒΆtemplate <typename T>
unsigned int countLeadingZeros(
T Val,
llvm::ZeroBehavior ZB = ZB_Width)
template <typename T>
unsigned int countLeadingZeros(
T Val,
llvm::ZeroBehavior ZB = ZB_Width)
Description
Count number of 0's from the most significant bit to the least stopping at the first 1. Only unsigned integral types are allowed.
Declared at: llvm/include/llvm/Support/MathExtras.h:225
Templates
- T
Parameters
- T Val
- llvm::ZeroBehavior ZB = ZB_Width
- the behavior on an input of 0. Only ZB_Width and ZB_Undefined are valid arguments.