shithub: scc

Download patch

ref: e0e4c5ac12c26af807a1a19d04cab53e8fae148e
parent: 8b3b797a2474a56c72f4c0f190910aeb320943be
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Jan 22 01:28:15 EST 2020

libc: Add amd64 memcpy implementation

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