Create a bitmask with the N right‐most bits set to 1, and all other bits set to 0. Only unsigned types are allowed.

Synopsis

Declared in <llvm/Support/MathExtras.h>

template<typename T>
constexpr
T
maskTrailingOnes(unsigned int N);

Return Value

A bitmask with the N right‐most bits set.

Parameters

Name

Description

N

Number of trailing one‐bits in the mask.

Created with MrDocs