Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions impls/memmove-ssse3.s
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ __memmove_ssse3:

movups %xmm0, (%rdi)

cmp __x86_shared_cache_size_half(%rip), %rdx

cmp __x86_shared_non_temporal_threshold(%rip), %rdx
ja .Llarge_memcpy

.Lloop_fwd:
leaq -64(%rdi, %rdx), %r8
andq $-16, %rdi
movl $48, %edx
Expand Down Expand Up @@ -134,6 +134,10 @@ __memmove_ssse3:
movups -64(%r9, %rdx), %xmm10
movups -80(%r9, %rdx), %xmm11

subq %rdi, %r9
cmpq %rdx, %r9
jb .Lloop_fwd

sall $5, %ecx
leal (%rcx, %rcx, 2), %r8d
leaq -96(%rdi, %rdx), %rcx
Expand Down