Export (0) Print
Expand All
Expand Minimize

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

Version

Available starting with Windows 2000.

Header

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

Library

Ntoskrnl.lib

IRQL

Any level

See also

RtlFindLeastSignificantBit

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft