<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>At 2013-11-05 17:43:51,praveen@multicorewareinc.com wrote:<BR>># HG changeset patch<BR>># User Praveen Tiwari<BR>># Date 1383644622 -19800<BR>># Node ID 33486d409515d5f9fd451818f7623a92690a219d<BR>># Parent c57ed1fd7bd568b8662ba5f2ffb94eb01c3a0157<BR>>changed naming convention and added unit test code for blockcopy_sp function<BR>><BR>>diff -r c57ed1fd7bd5 -r 33486d409515 source/common/pixel.cpp<BR>>--- a/source/common/pixel.cpp Tue Nov 05 00:39:00 2013 -0600<BR>>+++ b/source/common/pixel.cpp Tue Nov 05 15:13:42 2013 +0530<BR>>@@ -775,7 +775,7 @@<BR>> }<BR>> <BR>> template<int bx, int by><BR>>-void blockcopy_ps_c(pixel *a, intptr_t stridea, int16_t *b, intptr_t strideb)<BR>>+void blockcopy_sp_c(pixel *a, intptr_t stridea, int16_t *b, intptr_t strideb)</DIV>
<DIV>may we modify a/b to dst/src</DIV>
<DIV><BR>>+ // we don't know the partition size so we are checking the entire output buffer so<BR>>+ // we must initialize the buffers<BR>>+ memset(ref_dest, 0, sizeof(ref_dest));<BR>>+ memset(opt_dest, 0, sizeof(opt_dest));<BR>non-zero value is better, ex: 0xCD</DIV>
<DIV> </DIV>
<DIV>>+ int j = 0;<BR>>+ for (int i = 0; i < ITERS; i++)<BR>>+ {<BR>>+ opt(opt_dest, 64, sbuf1 + j, STRIDE);<BR>>+ ref(ref_dest, 64, sbuf1 + j, STRIDE);<BR>>+<BR>>+ if (memcmp(ref_dest, opt_dest, 64 * 64 * sizeof(pixel)))<BR>>+ return false;<BR>>+<BR>>+ j += INCR;<BR>>+ }<BR>>+<BR>>+ return true;<BR>>+}<BR>>+<BR></DIV></div>