ΒΆtemplate <typename T>
unsigned int countTrailingOnes(
    T Value,
    llvm::ZeroBehavior ZB = ZB_Width)

Description

Count the number of ones from the least significant bit to the first zero bit. Ex. countTrailingOnes(0x00FF00FF) == 8. Only unsigned integral types are allowed.

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

Templates

T

Parameters

T Value
llvm::ZeroBehavior ZB = ZB_Width
the behavior on an input of all ones. Only ZB_Width and ZB_Undefined are valid arguments.