Author: hbelusca
Date: Wed Mar 29 16:36:13 2017
New Revision: 74242
URL:
http://svn.reactos.org/svn/reactos?rev=74242&view=rev
Log:
[NDK][XDK]: Add some forgotten RTL bitmap functions.
Modified:
trunk/reactos/sdk/include/ndk/rtlfuncs.h
trunk/reactos/sdk/include/xdk/rtlfuncs.h
Modified: trunk/reactos/sdk/include/ndk/rtlfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/ndk/rtlfuncs.h…
==============================================================================
--- trunk/reactos/sdk/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/ndk/rtlfuncs.h [iso-8859-1] Wed Mar 29 16:36:13 2017
@@ -3230,6 +3230,14 @@
NTSYSAPI
VOID
NTAPI
+RtlClearBit(
+ _In_ PRTL_BITMAP BitMapHeader,
+ _In_range_(<, BitMapHeader->SizeOfBitMap) ULONG BitNumber
+);
+
+NTSYSAPI
+VOID
+NTAPI
RtlClearBits(
_In_ PRTL_BITMAP BitMapHeader,
_In_range_(0, BitMapHeader->SizeOfBitMap - NumberToClear) ULONG StartingIndex,
@@ -3289,6 +3297,14 @@
);
NTSYSAPI
+ULONG
+NTAPI
+RtlFindLongestRunClear(
+ _In_ PRTL_BITMAP BitMapHeader,
+ _Out_ PULONG StartingIndex
+);
+
+NTSYSAPI
CCHAR
NTAPI
RtlFindMostSignificantBit(
@@ -3390,6 +3406,20 @@
_In_ PRTL_BITMAP BitMapHeader,
_In_range_(<, BitMapHeader->SizeOfBitMap) ULONG BitNumber
);
+
+#if defined(_M_AMD64)
+_Must_inspect_result_
+FORCEINLINE
+BOOLEAN
+RtlCheckBit(
+ _In_ PRTL_BITMAP BitMapHeader,
+ _In_range_(<, BitMapHeader->SizeOfBitMap) ULONG BitPosition)
+{
+ return BitTest64((LONG64 CONST*)BitMapHeader->Buffer, (LONG64)BitPosition);
+}
+#else
+#define RtlCheckBit(BMH,BP) (((((PLONG)(BMH)->Buffer)[(BP)/32]) >> ((BP)%32))
& 0x1)
+#endif /* defined(_M_AMD64) */
//
// Timer Functions
Modified: trunk/reactos/sdk/include/xdk/rtlfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/xdk/rtlfuncs.h…
==============================================================================
--- trunk/reactos/sdk/include/xdk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/xdk/rtlfuncs.h [iso-8859-1] Wed Mar 29 16:36:13 2017
@@ -949,6 +949,12 @@
_Out_ PTIME_FIELDS TimeFields);
NTSYSAPI
+USHORT
+FASTCALL
+RtlUshortByteSwap(
+ _In_ USHORT Source);
+
+NTSYSAPI
ULONG
FASTCALL
RtlUlongByteSwap(
@@ -1018,12 +1024,6 @@
NTAPI
RtlUpcaseUnicodeChar(
_In_ WCHAR SourceCharacter);
-
-NTSYSAPI
-USHORT
-FASTCALL
-RtlUshortByteSwap(
- _In_ USHORT Source);
_IRQL_requires_max_(APC_LEVEL)
_Must_inspect_result_