ΒΆtemplate <typename T>
T maskLeadingOnes(unsigned int N)
template <typename T>
T maskLeadingOnes(unsigned int N)
Description
Create a bitmask with the N left-most bits set to 1, and all other bits set to 0. Only unsigned types are allowed.
Declared at: llvm/include/llvm/Support/MathExtras.h:257
Templates
- T
Parameters
- unsigned int N