scc

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

commit 5dbde374a62f0923bc720ca3f42884cd7340ef96
parent bdb679b87123bfd001006f45c317e1e6832b791a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 31 May 2020 18:25:17 +0200

libc: Fix amd64/memcpy

It is impoeeible to know the state of the D flag, so we
have to reset it to be sure that it is always 0.

Diffstat:
Msrc/libc/arch/amd64/memcpy.s | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/libc/arch/amd64/memcpy.s b/src/libc/arch/amd64/memcpy.s @@ -6,6 +6,7 @@ memcpy: _memcpy: mov %rdi,%rax mov %rdx,%rcx + cld rep movsb ret