Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292701
b: refs/heads/master
c: 9d8e227
h: refs/heads/master
i:
  292699: 5db6115
v: v3
  • Loading branch information
Jan Beulich authored and Ingo Molnar committed Jan 26, 2012
1 parent cc4a347 commit 7329159
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ab560911a427fdc73bfd3a7d2944d8ee0ca6db8
refs/heads/master: 9d8e22777e66f420e46490e9fc6f8cb7e0e2222b
19 changes: 10 additions & 9 deletions trunk/arch/x86/lib/memcpy_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,19 @@ ENTRY(memcpy)
retq
.p2align 4
.Lless_3bytes:
cmpl $0, %edx
je .Lend
subl $1, %edx
jb .Lend
/*
* Move data from 1 bytes to 3 bytes.
*/
.Lloop_1:
movb (%rsi), %r8b
movb %r8b, (%rdi)
incq %rdi
incq %rsi
decl %edx
jnz .Lloop_1
movzbl (%rsi), %ecx
jz .Lstore_1byte
movzbq 1(%rsi), %r8
movzbq (%rsi, %rdx), %r9
movb %r8b, 1(%rdi)
movb %r9b, (%rdi, %rdx)
.Lstore_1byte:
movb %cl, (%rdi)

.Lend:
retq
Expand Down

0 comments on commit 7329159

Please sign in to comment.