scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit aa8e11d5d96615a4b3a734e8b3620b02454d2bfe
parent cbf1264ca6d508d413891030a5aa99261693dc07
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 22 Jan 2020 06:28:15 +0100

libc: Add amd64 memcpy implementation

Diffstat:
Dsrc/libc/arch/amd64/memcpy.c | 2--
Asrc/libc/arch/amd64/memcpy.s | 11+++++++++++
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/libc/arch/amd64/memcpy.c b/src/libc/arch/amd64/memcpy.c @@ -1 +0,0 @@ -#include "../../string/memcpy.c"- \ No newline at end of file diff --git a/src/libc/arch/amd64/memcpy.s b/src/libc/arch/amd64/memcpy.s @@ -0,0 +1,11 @@ + .file "memcpy.s" + .text + .globl memcpy,_memcpy + +memcpy: +_memcpy: + mov %rdi,%rax + mov %rdx,%rcx + rep + movsb + ret