summaryrefslogtreecommitdiff
path: root/src/string/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/x86_64')
-rw-r--r--src/string/x86_64/memset.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/x86_64/memset.s b/src/string/x86_64/memset.s
index 263336b5..3cc8fcf6 100644
--- a/src/string/x86_64/memset.s
+++ b/src/string/x86_64/memset.s
@@ -9,7 +9,7 @@ memset:
cmp $16,%rdx
jb 1f
- mov %rdx,%rcx
+ lea -1(%rdx),%rcx
mov %rdi,%r8
shr $3,%rcx
mov %rax,-8(%rdi,%rdx)