Bewerken

Delen via


RtlFindMostSignificantBit function (wdm.h)

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

Syntax

NTSYSAPI CCHAR RtlFindMostSignificantBit(
  [in] ULONGLONG Set
);

Parameters

[in] Set

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

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

RtlFindLeastSignificantBit