RtlFindLeastSignificantBit function (wdm.h)

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


NTSYSAPI CCHAR RtlFindLeastSignificantBit(
  [in] ULONGLONG Set


[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.


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