<div dir="ltr">I mistyped one partition size, instead of 8x6 it will be 8x8, rest are correct.<div><br></div><div>Regards,</div><div>Praveen Tiwari</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 11, 2013 at 2:58 PM, <span dir="ltr"><<a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@multicorewareinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Praveen Tiwari<br>
# Date 1384162089 -19800<br>
# Node ID 6da0a0291ed8d10dc3dfdb3df396cd1a8c74ceeb<br>
# Parent da0b44e67fe07caa7ed113ec4946a371d96801be<br>
asm code for blockcopy_ps, 8x6, 8x16 and 8x32<br>
<br>
diff -r da0b44e67fe0 -r 6da0a0291ed8 source/common/x86/asm-primitives.cpp<br>
--- a/source/common/x86/asm-primitives.cpp Mon Nov 11 14:36:21 2013 +0530<br>
+++ b/source/common/x86/asm-primitives.cpp Mon Nov 11 14:58:09 2013 +0530<br>
@@ -459,6 +459,9 @@<br>
p.chroma_copy_ps[CHROMA_8x2] = x265_blockcopy_ps_8x2_sse4;<br>
p.chroma_copy_ps[CHROMA_8x4] = x265_blockcopy_ps_8x4_sse4;<br>
p.chroma_copy_ps[CHROMA_8x6] = x265_blockcopy_ps_8x6_sse4;<br>
+ p.chroma_copy_ps[CHROMA_8x8] = x265_blockcopy_ps_8x8_sse4;<br>
+ p.chroma_copy_ps[CHROMA_8x16] = x265_blockcopy_ps_8x16_sse4;<br>
+ p.chroma_copy_ps[CHROMA_8x32] = x265_blockcopy_ps_8x32_sse4;<br>
}<br>
if (cpuMask & X265_CPU_AVX)<br>
{<br>
diff -r da0b44e67fe0 -r 6da0a0291ed8 source/common/x86/blockcopy8.asm<br>
--- a/source/common/x86/blockcopy8.asm Mon Nov 11 14:36:21 2013 +0530<br>
+++ b/source/common/x86/blockcopy8.asm Mon Nov 11 14:58:09 2013 +0530<br>
@@ -1743,3 +1743,46 @@<br>
movu [r0 + r1], m0<br>
<br>
RET<br>
+<br>
+;-----------------------------------------------------------------------------<br>
+; void blockcopy_ps_%1x%2(int16_t *dest, intptr_t destStride, pixel *src, intptr_t srcStride);<br>
+;-----------------------------------------------------------------------------<br>
+%macro BLOCKCOPY_PS_W8_H4 2<br>
+INIT_XMM sse4<br>
+cglobal blockcopy_ps_%1x%2, 4, 5, 1, dest, destStride, src, srcStride<br>
+<br>
+add r1, r1<br>
+mov r4d, %2/4<br>
+<br>
+.loop<br>
+ movh m0, [r2]<br>
+ pmovzxbw m0, m0<br>
+ movu [r0], m0<br>
+<br>
+ movh m0, [r2 + r3]<br>
+ pmovzxbw m0, m0<br>
+ movu [r0 + r1], m0<br>
+<br>
+ movh m0, [r2 + 2 * r3]<br>
+ pmovzxbw m0, m0<br>
+ movu [r0 + 2 * r1], m0<br>
+<br>
+ lea r2, [r2 + 2 * r3]<br>
+ lea r0, [r0 + 2 * r1]<br>
+<br>
+ movh m0, [r2 + r3]<br>
+ pmovzxbw m0, m0<br>
+ movu [r0 + r1], m0<br>
+<br>
+ lea r0, [r0 + 2 * r1]<br>
+ lea r2, [r2 + 2 * r3]<br>
+<br>
+ dec r4d<br>
+ jnz .loop<br>
+<br>
+RET<br>
+%endmacro<br>
+<br>
+BLOCKCOPY_PS_W8_H4 8, 8<br>
+BLOCKCOPY_PS_W8_H4 8, 16<br>
+BLOCKCOPY_PS_W8_H4 8, 32<br>
diff -r da0b44e67fe0 -r 6da0a0291ed8 source/common/x86/blockcopy8.h<br>
--- a/source/common/x86/blockcopy8.h Mon Nov 11 14:36:21 2013 +0530<br>
+++ b/source/common/x86/blockcopy8.h Mon Nov 11 14:58:09 2013 +0530<br>
@@ -96,7 +96,10 @@<br>
#define CHROMA_BLOCKCOPY_DEF_SSE4(cpu) \<br>
SETUP_CHROMA_BLOCKCOPY_FUNC_SSE4(8, 2, cpu); \<br>
SETUP_CHROMA_BLOCKCOPY_FUNC_SSE4(8, 4, cpu); \<br>
- SETUP_CHROMA_BLOCKCOPY_FUNC_SSE4(8, 6, cpu);<br>
+ SETUP_CHROMA_BLOCKCOPY_FUNC_SSE4(8, 6, cpu); \<br>
+ SETUP_CHROMA_BLOCKCOPY_FUNC_SSE4(8, 8, cpu); \<br>
+ SETUP_CHROMA_BLOCKCOPY_FUNC_SSE4(8, 16, cpu); \<br>
+ SETUP_CHROMA_BLOCKCOPY_FUNC_SSE4(8, 32, cpu);<br>
<br>
CHROMA_BLOCKCOPY_DEF_SSE4(_sse4);<br>
<br>
</blockquote></div><br></div>