From 48d3403c40cc6a1db188b77c8a677be34d64a3e2 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 26 Jul 2018 05:49:24 +1000 Subject: [PATCH] [memcpy] fix error caused by switch to shorter OPs --- common/memcpySSE.asm | 2 +- common/memcpySSE.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/memcpySSE.asm b/common/memcpySSE.asm index df16ed22..090435f1 100644 --- a/common/memcpySSE.asm +++ b/common/memcpySSE.asm @@ -57,7 +57,7 @@ memcpySSE proc mov r10, 7 sub r10, r11 - imul r10, 10 + imul r10, 9 lea r9 , @FinalBlocks add r9 , r10 jmp r9 diff --git a/common/memcpySSE.h b/common/memcpySSE.h index 364b28b5..b3629cb5 100644 --- a/common/memcpySSE.h +++ b/common/memcpySSE.h @@ -51,7 +51,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA } const void * end = dst + (length & ~0x7F); - const size_t off = (7 - ((length & 0x7F) >> 4)) * 10; + const size_t off = (7 - ((length & 0x7F) >> 4)) * 9; __asm__ __volatile__ ( "cmp %[dst],%[end] \n\t" @@ -132,4 +132,4 @@ Place, Suite 330, Boston, MA 02111-1307 USA } #else #define memcpySSE memcpy -#endif \ No newline at end of file +#endif