#ifndef _NTRTL_H
/**
* The RtlFindLeastSignificantBit routine returns the zero-based position of the least significant nonzero bit in its parameter.
*
* \param Set The 64-bit value to be searched for its least significant nonzero bit.
* \return The zero-based bit position of the least significant nonzero bit, or -1 if every bit is zero.
* \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-rtlfindleastsignificantbit
*/
NTSYSAPI
CCHAR
NTAPI
RtlFindLeastSignificantBit(
_In_ ULONGLONG Set
);
View code on GitHub// wdm.h
NTSYSAPI CCHAR RtlFindLeastSignificantBit(
[in] ULONGLONG Set
);
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
The RtlFindLeastSignificantBit routine returns the zero-based position of the least significant nonzero bit in its parameter.
Set [in]The 64-bit value to be searched for its least significant nonzero bit.
The zero-based bit position of the least significant nonzero bit, or -1 if every bit is zero.