[x265] [PATCH 2 of 3] Test bench modifications for weight_pp() asm routine

nabajit at multicorewareinc.com nabajit at multicorewareinc.com
Mon Nov 25 11:18:04 CET 2013


# HG changeset patch
# User Nabajit Deka
# Date 1385374525 -19800
#      Mon Nov 25 15:45:25 2013 +0530
# Node ID f7422dfb7eef017344b4d974dac641cb00f7f5b7
# Parent  365f90b3b78cd3c91d6f0985b0d467da4a91d95a
Test bench modifications for weight_pp() asm routine.

diff -r 365f90b3b78c -r f7422dfb7eef source/test/pixelharness.cpp
--- a/source/test/pixelharness.cpp	Mon Nov 25 15:31:55 2013 +0530
+++ b/source/test/pixelharness.cpp	Mon Nov 25 15:45:25 2013 +0530
@@ -315,10 +315,10 @@
     memset(ref_dest, 0, 64 * 64 * sizeof(pixel));
     memset(opt_dest, 0, 64 * 64 * sizeof(pixel));
     int j = 0;
-    int width = (2 * rand()) % 64;
+    int width = 16 * (rand() % 4 + 1);
     int height = 8;
-    int w0 = rand() % 256;
-    int shift = rand() % 12;
+    int w0 = rand() % 128;
+    int shift = rand() % 15;
     int round = shift ? (1 << (shift - 1)) : 0;
     int offset = (rand() % 256) - 128;
     for (int i = 0; i < ITERS; i++)


More information about the x265-devel mailing list