From 2ba9015708a60d3099db01fb4dbe3d9f6a434a0f Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 27 May 2003 19:28:40 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/; revision=4774 --- reactos/ntoskrnl/rtl/i386/memcpy.c | 34 ------------------------------ reactos/ntoskrnl/rtl/i386/memset.c | 31 --------------------------- reactos/ntoskrnl/rtl/memcpy.c | 31 --------------------------- reactos/ntoskrnl/rtl/memset.c | 14 ------------ 4 files changed, 110 deletions(-) delete mode 100644 reactos/ntoskrnl/rtl/i386/memcpy.c delete mode 100644 reactos/ntoskrnl/rtl/i386/memset.c delete mode 100644 reactos/ntoskrnl/rtl/memcpy.c delete mode 100644 reactos/ntoskrnl/rtl/memset.c diff --git a/reactos/ntoskrnl/rtl/i386/memcpy.c b/reactos/ntoskrnl/rtl/i386/memcpy.c deleted file mode 100644 index 631cf4a9a25..00000000000 --- a/reactos/ntoskrnl/rtl/i386/memcpy.c +++ /dev/null @@ -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 -#include - -#define NDEBUG -#include - -/* 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; -} - diff --git a/reactos/ntoskrnl/rtl/i386/memset.c b/reactos/ntoskrnl/rtl/i386/memset.c deleted file mode 100644 index c39b8c442a5..00000000000 --- a/reactos/ntoskrnl/rtl/i386/memset.c +++ /dev/null @@ -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 - -#define NDEBUG -#include - -/* 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; -} diff --git a/reactos/ntoskrnl/rtl/memcpy.c b/reactos/ntoskrnl/rtl/memcpy.c deleted file mode 100644 index 73739854704..00000000000 --- a/reactos/ntoskrnl/rtl/memcpy.c +++ /dev/null @@ -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 -#include - -#define NDEBUG -#include - -/* 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; -} - diff --git a/reactos/ntoskrnl/rtl/memset.c b/reactos/ntoskrnl/rtl/memset.c deleted file mode 100644 index 49d1e730ef6..00000000000 --- a/reactos/ntoskrnl/rtl/memset.c +++ /dev/null @@ -1,14 +0,0 @@ - -#include - -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; -}