Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: unit_test/scale_test.cc

Issue 1520423003: avx2 scale down by 2 for gcc (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: merge with head Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/scale_gcc.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unit_test/scale_test.cc
diff --git a/unit_test/scale_test.cc b/unit_test/scale_test.cc
index 126a737ff54dadd16af53f4bf302db2770b0ec52..ce474fa1e08ad86d0743f8ae233d008682fbe4ce 100644
--- a/unit_test/scale_test.cc
+++ b/unit_test/scale_test.cc
@@ -298,18 +298,18 @@ static int TestFilter_16(int src_width, int src_height,
// Test a scale factor with all 4 filters. Expect unfiltered to be exact, but
// filtering is different fixed point implementations for SSSE3, Neon and C.
-#define TEST_FACTOR(name, nom, denom) \
+#define TEST_FACTOR(name, nom, denom, maxdiff) \
TEST_FACTOR1(name, None, nom, denom, 0) \
- TEST_FACTOR1(name, Linear, nom, denom, 3) \
- TEST_FACTOR1(name, Bilinear, nom, denom, 3) \
- TEST_FACTOR1(name, Box, nom, denom, 3)
-
-TEST_FACTOR(2, 1, 2)
-TEST_FACTOR(4, 1, 4)
-TEST_FACTOR(8, 1, 8)
-TEST_FACTOR(3by4, 3, 4)
-TEST_FACTOR(3by8, 3, 8)
-TEST_FACTOR(3, 1, 3)
+ TEST_FACTOR1(name, Linear, nom, denom, maxdiff) \
+ TEST_FACTOR1(name, Bilinear, nom, denom, maxdiff) \
+ TEST_FACTOR1(name, Box, nom, denom, maxdiff)
+
+TEST_FACTOR(2, 1, 2, 0)
+TEST_FACTOR(4, 1, 4, 3)
+TEST_FACTOR(8, 1, 8, 3)
+TEST_FACTOR(3by4, 3, 4, 3)
+TEST_FACTOR(3by8, 3, 8, 3)
+TEST_FACTOR(3, 1, 3, 3)
#undef TEST_FACTOR1
#undef TEST_FACTOR
#undef SX
« no previous file with comments | « source/scale_gcc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698