llvm::isShiftedMask_64

isShiftedMask_64 overloads

Synopses

Declared in <llvm/Support/MathExtras.h>

Return true if the argument contains a non-empty sequence of ones with the remainder zero (64 bit version.)

constexpr
bool
isShiftedMask_64(uint64_t Value);
» more...

Return true if Value is a non-empty shifted ones mask (64-bit).

bool
isShiftedMask_64(
    uint64_t Value,
    unsigned int& MaskIdx,
    unsigned int& MaskLen);
» more...

Return Value

True if Value is a non-empty shifted ones mask.

Parameters

NameDescription
Value64-bit value to test.
MaskIdxSet to the index of the lowest set bit when true.
MaskLenSet to the number of consecutive ones when true.