RtlFindMostSignificantBit routine

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

Syntax


CCHAR RtlFindMostSignificantBit(
  _In_ ULONGLONG Set
);

Parameters

Set [in]

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

Return value

The zero-based bit position of the most 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

RtlFindLeastSignificantBit

 

 

Send comments about this topic to Microsoft

Show: