RtlFindLeastSignificantBit routine

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

Syntax


CCHAR RtlFindLeastSignificantBit(
  _In_ ULONGLONG Set
);

Parameters

Set [in]

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

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

Any level

See also

RtlFindMostSignificantBit

 

 

Send comments about this topic to Microsoft

Show: