From: Konstantinos Margaritis Date: Fri, 23 Sep 2022 07:33:01 +0000 (+0000) Subject: reduce iterations, taking too long in the simulator X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14118c30bddc725582213c04753c7d098a4e7fd8;p=openpower-isa.git reduce iterations, taking too long in the simulator --- diff --git a/media/video/libvpx/variance_test.cc b/media/video/libvpx/variance_test.cc index 12fdf162..a5d5bb4b 100644 --- a/media/video/libvpx/variance_test.cc +++ b/media/video/libvpx/variance_test.cc @@ -310,14 +310,14 @@ class MainTestClass template void MainTestClass::ZeroTest() { - for (int i = 0; i <= 255; ++i) { + for (int i = 0; i <= 3; ++i) { if (!use_high_bit_depth()) { memset(src_, i, block_size()); } else { uint16_t *const src16 = CONVERT_TO_SHORTPTR(src_); for (int k = 0; k < block_size(); ++k) src16[k] = i << byte_shift(); } - for (int j = 0; j <= 255; ++j) { + for (int j = 0; j <= 3; ++j) { if (!use_high_bit_depth()) { memset(ref_, j, block_size()); } else { @@ -334,7 +334,7 @@ void MainTestClass::ZeroTest() { template void MainTestClass::RefTest() { - for (int i = 0; i < 10; ++i) { + for (int i = 0; i < 3; ++i) { for (int j = 0; j < block_size(); j++) { if (!use_high_bit_depth()) { src_[j] = rnd_.Rand8(); @@ -355,7 +355,7 @@ void MainTestClass::RefTest() { template void MainTestClass::RefStrideTest() { - for (int i = 0; i < 10; ++i) { + for (int i = 0; i < 3; ++i) { const int ref_stride = (i & 1) * width(); const int src_stride = ((i >> 1) & 1) * width(); for (int j = 0; j < block_size(); j++) {