<div dir="ltr">Thanks, pushed this series<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-19 11:17 GMT+05:30 Divya Manivannan <span dir="ltr"><<a href="mailto:divya@multicorewareinc.com" target="_blank">divya@multicorewareinc.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Divya Manivannan <<a href="mailto:divya@multicorewareinc.com">divya@multicorewareinc.com</a>><br>
# Date 1421646391 -19800<br>
# Mon Jan 19 11:16:31 2015 +0530<br>
# Node ID 1819b33631db227007283d952cbea22759012756<br>
# Parent 96b98b02b9ffc44d7da263a5c9d49e110c22d2da<br>
asm: psyCost_ss_64x64 in sse4: improve 501123c->159906c<br>
<br>
diff -r 96b98b02b9ff -r 1819b33631db source/common/x86/asm-primitives.cpp<br>
--- a/source/common/x86/asm-primitives.cpp Mon Jan 19 11:05:33 2015 +0530<br>
+++ b/source/common/x86/asm-primitives.cpp Mon Jan 19 11:16:31 2015 +0530<br>
@@ -934,6 +934,7 @@<br>
<a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_8x8].psy_cost_ss = x265_psyCost_ss_8x8_sse4;<br>
<a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_16x16].psy_cost_ss = x265_psyCost_ss_16x16_sse4;<br>
<a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_32x32].psy_cost_ss = x265_psyCost_ss_32x32_sse4;<br>
+ <a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_64x64].psy_cost_ss = x265_psyCost_ss_64x64_sse4;<br>
#endif<br>
<a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_4x4].psy_cost_ss = x265_psyCost_ss_4x4_sse4;<br>
}<br>
@@ -1188,6 +1189,7 @@<br>
<a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_8x8].psy_cost_ss = x265_psyCost_ss_8x8_sse4;<br>
<a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_16x16].psy_cost_ss = x265_psyCost_ss_16x16_sse4;<br>
<a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_32x32].psy_cost_ss = x265_psyCost_ss_32x32_sse4;<br>
+ <a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_64x64].psy_cost_ss = x265_psyCost_ss_64x64_sse4;<br>
#endif<br>
<a href="http://p.cu" target="_blank">p.cu</a>[BLOCK_4x4].psy_cost_ss = x265_psyCost_ss_4x4_sse4;<br>
}<br>
diff -r 96b98b02b9ff -r 1819b33631db source/common/x86/pixel-a.asm<br>
--- a/source/common/x86/pixel-a.asm Mon Jan 19 11:05:33 2015 +0530<br>
+++ b/source/common/x86/pixel-a.asm Mon Jan 19 11:16:31 2015 +0530<br>
@@ -8931,3 +8931,31 @@<br>
movd eax, m15<br>
RET<br>
%endif<br>
+<br>
+%if ARCH_X86_64<br>
+INIT_XMM sse4<br>
+cglobal psyCost_ss_64x64, 4, 9, 16<br>
+<br>
+ mova m13, [hmul_w]<br>
+ mova m14, [pw_1]<br>
+ add r1, r1<br>
+ add r3, r3<br>
+ lea r4, [3 * r1]<br>
+ lea r6, [3 * r3]<br>
+ pxor m15, m15<br>
+ mov r7d, 8<br>
+.loopH:<br>
+ mov r8d, 8<br>
+.loopW:<br>
+ psy_cost_ss<br>
+ add r0, 16<br>
+ add r2, 16<br>
+ dec r8d<br>
+ jnz .loopW<br>
+ lea r0, [r0 + r1 * 8 - 128]<br>
+ lea r2, [r2 + r3 * 8 - 128]<br>
+ dec r7d<br>
+ jnz .loopH<br>
+ movd eax, m15<br>
+ RET<br>
+%endif<br>
diff -r 96b98b02b9ff -r 1819b33631db source/common/x86/pixel.h<br>
--- a/source/common/x86/pixel.h Mon Jan 19 11:05:33 2015 +0530<br>
+++ b/source/common/x86/pixel.h Mon Jan 19 11:16:31 2015 +0530<br>
@@ -227,6 +227,7 @@<br>
int x265_psyCost_ss_8x8_sse4(const int16_t* source, intptr_t sstride, const int16_t* recon, intptr_t rstride);<br>
int x265_psyCost_ss_16x16_sse4(const int16_t* source, intptr_t sstride, const int16_t* recon, intptr_t rstride);<br>
int x265_psyCost_ss_32x32_sse4(const int16_t* source, intptr_t sstride, const int16_t* recon, intptr_t rstride);<br>
+int x265_psyCost_ss_64x64_sse4(const int16_t* source, intptr_t sstride, const int16_t* recon, intptr_t rstride);<br>
<br>
#undef DECL_PIXELS<br>
#undef DECL_HEVC_SSD<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br></div>