*** empty log message ***

svn path=/trunk/; revision=4774
This commit is contained in:
Hartmut Birr 2003-05-27 19:28:40 +00:00
parent 7297d83e9f
commit 2ba9015708
4 changed files with 0 additions and 110 deletions

View file

@ -1,34 +0,0 @@
/* $Id: memcpy.c,v 1.3 2002/09/08 10:23:43 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/rtl/i386/memcpy.c
* PROGRAMMER: Hartmut Birr
* UPDATE HISTORY:
*/
/* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <string.h>
#define NDEBUG
#include <internal/debug.h>
/* FUNCTIONS *****************************************************************/
#undef memcpy
void *memcpy (void *to, const void *from, size_t count)
{
__asm__( \
"or %%ecx,%%ecx\n\t"\
"jz .L1\n\t" \
"cld\n\t" \
"rep\n\t" \
"movsb\n\t" \
".L1:\n\t"
:
: "D" (to), "S" (from), "c" (count));
return to;
}

View file

@ -1,31 +0,0 @@
/* $Id: memset.c,v 1.3 2002/09/08 10:23:43 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/rtl/i386/memcpy.c
* PROGRAMMER: Hartmut Birr
* UPDATE HISTORY:
*/
/* INCLUDES *****************************************************************/
#include <string.h>
#define NDEBUG
#include <internal/debug.h>
/* FUNCTIONS *****************************************************************/
void * memset(void *src, int val, size_t count)
{
__asm__( \
"or %%ecx,%%ecx\n\t"\
"jz .L1\n\t" \
"cld\t\n" \
"rep\t\n" \
"stosb\t\n" \
".L1:\n\t"
:
: "D" (src), "c" (count), "a" (val));
return src;
}

View file

@ -1,31 +0,0 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/rtl/memcpy.c
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
*/
/* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <string.h>
#define NDEBUG
#include <internal/debug.h>
/* FUNCTIONS *****************************************************************/
#undef memcpy
void *memcpy (void *to, const void *from, size_t count)
{
const char *f = (char*)from;
char *t = (char *)to;
int i = count;
while (i-- > 0)
*t++ = *f++;
return to;
}

View file

@ -1,14 +0,0 @@
#include <string.h>
void * memset(void *src, int val, size_t count)
{
char *char_src = (char *)src;
while(count>0) {
*char_src = val;
char_src++;
count--;
}
return src;
}