RtlFindLeastSignificantBit function

The RtlFindLeastSignificantBit routine returns the zero-based position of the least significant nonzero bit in its parameter.

Syntax

NTSYSAPI CCHAR RtlFindLeastSignificantBit(
  ULONGLONG Set
);

Parameters

Set

The 64-bit value to be searched for its least significant nonzero bit.

Return Value

The zero-based bit position of the least significant nonzero bit, or -1 if every bit is zero.

Requirements

   
Windows version Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See Also

RtlFindMostSignificantBit