RtlFindLeastSignificantBit function (wdm.h)

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

Syntax

NTSYSAPI CCHAR RtlFindLeastSignificantBit(
  [in] ULONGLONG Set
);

Parameters

[in] 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

Requirement Value
Minimum supported client 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