mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
Fixed memory functions.
svn path=/trunk/; revision=761
This commit is contained in:
parent
ea4204ce87
commit
761e03c5a1
|
@ -1,4 +1,4 @@
|
|||
/* $Id: mem.c,v 1.5 1999/10/31 22:39:41 ea Exp $
|
||||
/* $Id: mem.c,v 1.6 1999/11/09 18:07:50 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -20,7 +20,9 @@
|
|||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
ULONG RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length)
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length)
|
||||
/*
|
||||
* FUNCTION: Compares blocks of memory and returns the number of equal bytes
|
||||
* ARGUMENTS:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: mem.c,v 1.5 1999/10/31 22:41:49 ea Exp $
|
||||
/* $Id: mem.c,v 1.6 1999/11/09 18:03:39 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -20,7 +20,9 @@
|
|||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
ULONG RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length)
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length)
|
||||
/*
|
||||
* FUNCTION: Compares blocks of memory and returns the number of equal bytes
|
||||
* ARGUMENTS:
|
||||
|
@ -70,6 +72,26 @@ RtlFillMemory (
|
|||
}
|
||||
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
RtlFillMemoryUlong (
|
||||
PVOID Destination,
|
||||
ULONG Length,
|
||||
ULONG Fill
|
||||
)
|
||||
{
|
||||
PULONG Dest = Destination;
|
||||
ULONG Count = Length / 4;
|
||||
|
||||
while (Count > 0)
|
||||
{
|
||||
*Dest = Fill;
|
||||
Dest++;
|
||||
Count--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
RtlZeroMemory (
|
||||
|
|
Loading…
Reference in a new issue