llvm::APInt::isOneBitSet

Determine if this APInt Value only has the specified bit set.

Synopsis

Declared in <llvm/ADT/APInt.h>

bool
isOneBitSet(unsigned int BitNo) const;

Return Value

true if this APInt only has the specified bit set.

Parameters

NameDescription
BitNoZero-based index of the sole set bit