scc

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

commit a4293d8a43304f4acd52220f80347ead43cff2f9
parent 7ef7fdf9edcca8379b59b8896bfd9c98e02709be
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