RtlFindLeastSignificantBit - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
CCHAR
NTAPI
RtlFindLeastSignificantBit(
    _In_ ULONGLONG Set
    );

#endif

View code on GitHub
// wdm.h

NTSYSAPI CCHAR RtlFindLeastSignificantBit(
  [in] ULONGLONG Set
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-wdm-rtlfindleastsignificantbit)

RtlFindLeastSignificantBit function

Description

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

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.

See also

RtlFindMostSignificantBit