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 in <llvm/Support/MathExtras.h>
template<typename T>
constexpr
T
maskLeadingOnes(unsigned int N);
A bitmask with the N left-most bits set.
| Name | Description |
|---|---|
| N | Number of leading one-bits in the mask. |