<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>At 2013-11-07 20:46:39,praveen@multicorewareinc.com wrote:<BR>># HG changeset patch<BR>># User Praveen Tiwari<BR>># Date 1383828382 -19800<BR>># Node ID d71f86b1c58b4fc9f8a3ffeaaef45c60f8bcc468<BR>># Parent  6de480fbbfb94a709adb18dcd3fbef9169de7a97<BR>>unit test code for blockfil_s_c function<BR>><BR>>diff -r 6de480fbbfb9 -r d71f86b1c58b source/test/pixelharness.cpp<BR>>--- a/source/test/pixelharness.cpp        Thu Nov 07 13:10:44 2013 +0530<BR>>+++ b/source/test/pixelharness.cpp    Thu Nov 07 18:16:22 2013 +0530<BR>>@@ -604,6 +604,31 @@<BR>>     return true;<BR>> }<BR>> <BR>>+bool PixelHarness::check_blockfil_s(blockfill_s_t ref, blockfill_s_t opt)<BR>>+{<BR>>+    ALIGN_VAR_16(int16_t, ref_dest[64 * 64]);<BR>>+    ALIGN_VAR_16(int16_t, opt_dest[64 * 64]);<BR>>+<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>>+<BR>>+    int16_t value = (rand() % SHORT_MAX) + 1;<BR>>+<BR>>+    for (int i = 0; i < ITERS; i++)<BR>>+    {<BR>>+        opt(opt_dest, 64, value);<BR>>+        ref(ref_dest, 64, value);<BR>>+<BR>>+        if (memcmp(ref_dest, opt_dest, 64 * 64 * sizeof(int16_t)))<BR>>+            return false;<BR>>+<BR>>+    }<BR>same value fill into same address can 't verify function.</DIV>
<DIV> </DIV></div>