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

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


# HG changeset patch
# User Nabajit Deka
# Date 1385375804 -19800
#      Mon Nov 25 16:06:44 2013 +0530
# Node ID 21d87345c83d732137d6319023ead387a442377a
# Parent  4a5ad44661863551a57ab5a2d38f9e91e4297b7c
Test bench modifications for weight_sp() asm routine

diff -r 4a5ad4466186 -r 21d87345c83d 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:06:44 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() + 1)) % 64;
     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