mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 08:46:47 +08:00
fix compare row test for avx2 which does 64 bytes per loop
libyuv_test --gunit_also_run_disabled_tests --libyuv_width=129 Bug: libyuv:894 Change-Id: I2511f8fa486e492097b4882c466dd37cc3c1e25d Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2808631 Reviewed-by: Frank Barchard <fbarchard@chromium.org> Reviewed-by: richard winterton <rrwinterton@gmail.com>
This commit is contained in:
parent
d1bfc6ead6
commit
64994843e6
@ -344,7 +344,7 @@ static const int kMaxOptCount = (1 << (32 - 3)) - 64; // 536870848
|
||||
|
||||
TEST_F(LibYUVCompareTest, TestHammingDistance_Opt) {
|
||||
uint32_t h1 = 0;
|
||||
const int kMaxWidth = (benchmark_width_ * benchmark_height_ + 31) & ~31;
|
||||
const int kMaxWidth = (benchmark_width_ * benchmark_height_ + 63) & ~63;
|
||||
align_buffer_page_end(src_a, kMaxWidth);
|
||||
align_buffer_page_end(src_b, kMaxWidth);
|
||||
memset(src_a, 255u, kMaxWidth);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user