ΒΆtemplate <typename T>
T findLastSet(T Val,
              llvm::ZeroBehavior ZB = ZB_Max)

Description

Get the index of the last set bit starting from the least significant bit. Only unsigned integral types are allowed.

Declared at: llvm/include/llvm/Support/MathExtras.h:280

Templates

T

Parameters

T Val
llvm::ZeroBehavior ZB = ZB_Max
the behavior on an input of 0. Only ZB_Max and ZB_Undefined are valid arguments.