llvm::APInt::tcMSB

Return the bit index of the most significant set bit in parts.

Synopsis

Declared in <llvm/ADT/APInt.h>

static
unsigned int
tcMSB(
    WordType const* parts,
    unsigned int n);

Return Value

bit index of the MSB, or -1U if no bits are set

Parameters

NameDescription
partslimb array of the bignum
nnumber of limbs in parts