[x265] [PATCH] Test bench modifications for weight_sp() asm routine

nabajit at multicorewareinc.com nabajit at multicorewareinc.com
Mon Nov 25 12:20:08 CET 2013


# HG changeset patch
# User Nabajit Deka
# Date 1385378388 -19800
#      Mon Nov 25 16:49:48 2013 +0530
# Node ID d2d31d26493438d3b4ee22802bdab085460359a4
# Parent  4a5ad44661863551a57ab5a2d38f9e91e4297b7c
 Test bench modifications for weight_sp() asm routine

diff -r 4a5ad4466186 -r d2d31d264934 source/test/pixelharness.cpp
--- a/source/test/pixelharness.cpp	Mon Nov 25 16:04:53 2013 +0530
+++ b/source/test/pixelharness.cpp	Mon Nov 25 16:49:48 2013 +0530
@@ -287,10 +287,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 = 2 * (rand() % 32 + 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