mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[PSDK]
winnt.h: Improve Rtl*Memory defines, add missing RtlEqualMemory svn path=/trunk/; revision=66713
This commit is contained in:
@@ -2084,8 +2084,10 @@ RtlCompareMemoryUlong(
|
||||
_In_ ULONG Pattern
|
||||
);
|
||||
|
||||
#ifndef RtlEqualMemory
|
||||
#define RtlEqualMemory(Destination, Source, Length) \
|
||||
(!memcmp(Destination, Source, Length))
|
||||
#endif
|
||||
|
||||
#define RtlCopyBytes RtlCopyMemory
|
||||
#define RtlFillBytes RtlFillMemory
|
||||
|
||||
@@ -5861,10 +5861,11 @@ RtlCompareMemory (
|
||||
_In_ const VOID *Source2,
|
||||
_In_ SIZE_T Length);
|
||||
|
||||
#define RtlMoveMemory memmove
|
||||
#define RtlCopyMemory memcpy
|
||||
#define RtlFillMemory(d,l,f) memset((d), (f), (l))
|
||||
#define RtlZeroMemory(d,l) RtlFillMemory((d),(l),0)
|
||||
#define RtlMoveMemory(Dest,Source,Length) memmove((Dest),(Source),(Length))
|
||||
#define RtlCopyMemory(Dest,Source,Length) memcpy((Dest),(Source),(Length))
|
||||
#define RtlFillMemory(Dest,Length,Fill) memset((Dest),(Fill),(Length))
|
||||
#define RtlZeroMemory(Dest,Length) RtlFillMemory((Dest),(Length),0)
|
||||
#define RtlEqualMemory(Dest,Source,Length) (!memcmp((Dest),(Source),(Length)))
|
||||
|
||||
FORCEINLINE
|
||||
PVOID
|
||||
|
||||
@@ -4506,10 +4506,11 @@ RtlCompareMemory (
|
||||
_In_ const VOID *Source2,
|
||||
_In_ SIZE_T Length);
|
||||
|
||||
#define RtlMoveMemory memmove
|
||||
#define RtlCopyMemory memcpy
|
||||
#define RtlFillMemory(d,l,f) memset((d), (f), (l))
|
||||
#define RtlZeroMemory(d,l) RtlFillMemory((d),(l),0)
|
||||
#define RtlMoveMemory(Dest,Source,Length) memmove((Dest),(Source),(Length))
|
||||
#define RtlCopyMemory(Dest,Source,Length) memcpy((Dest),(Source),(Length))
|
||||
#define RtlFillMemory(Dest,Length,Fill) memset((Dest),(Fill),(Length))
|
||||
#define RtlZeroMemory(Dest,Length) RtlFillMemory((Dest),(Length),0)
|
||||
#define RtlEqualMemory(Dest,Source,Length) (!memcmp((Dest),(Source),(Length)))
|
||||
|
||||
FORCEINLINE
|
||||
PVOID
|
||||
|
||||
Reference in New Issue
Block a user