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

Description

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

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

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.