Author: sserapion
Date: Mon May 31 02:55:11 2010
New Revision: 47477
URL:
http://svn.reactos.org/svn/reactos?rev=47477&view=rev
Log:
Opps, accidentally revived memcpy.c
Removed:
branches/ros-amd64-bringup/reactos/lib/sdk/crt/mem/memcpy.c
Modified:
branches/ros-amd64-bringup/reactos/lib/sdk/crt/crt.rbuild
Modified: branches/ros-amd64-bringup/reactos/lib/sdk/crt/crt.rbuild
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/s…
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/sdk/crt/crt.rbuild [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/sdk/crt/crt.rbuild [iso-8859-1] Mon May 31
02:55:11 2010
@@ -264,14 +264,12 @@
<if property="ARCH" value="i386">
<directory name="i386">
<file>memchr_asm.s</file>
- <file>memcpy_asm.s</file>
<file>memmove_asm.s</file>
<file>memset_asm.s</file>
</directory>
</if>
<ifnot property="ARCH" value="i386">
<file>memchr.c</file>
- <file>memcpy.c</file>
<file>memmove.c</file>
<file>memset.c</file>
</ifnot>
Removed: branches/ros-amd64-bringup/reactos/lib/sdk/crt/mem/memcpy.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/s…
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/sdk/crt/mem/memcpy.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/sdk/crt/mem/memcpy.c (removed)
@@ -1,36 +1,0 @@
-#include <string.h>
-
-/* NOTE: This code is a duplicate of memmove implementation! */
-void* memcpy(void* dest, const void* src, size_t count)
-{
- char *char_dest = (char *)dest;
- char *char_src = (char *)src;
-
- if ((char_dest <= char_src) || (char_dest >= (char_src+count)))
- {
- /* non-overlapping buffers */
- while(count > 0)
- {
- *char_dest = *char_src;
- char_dest++;
- char_src++;
- count--;
- }
- }
- else
- {
- /* overlaping buffers */
- char_dest = (char *)dest + count - 1;
- char_src = (char *)src + count - 1;
-
- while(count > 0)
- {
- *char_dest = *char_src;
- char_dest--;
- char_src--;
- count--;
- }
- }
-
- return dest;
-}