From fdc71956bdade0012b0628b5011b567c06c72308 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Thu, 9 Dec 2021 19:29:06 -0800 Subject: [PATCH] InterpolateRow_AVX2 - extend width count to 64 bits Bug: b/210066781 Change-Id: Ib9052d8edfce29b95ca02a6f7254d3ff35d2b64d Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3329070 Reviewed-by: richard winterton Commit-Queue: Frank Barchard --- source/row_gcc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/row_gcc.cc b/source/row_gcc.cc index 61117a33d..953a66926 100644 --- a/source/row_gcc.cc +++ b/source/row_gcc.cc @@ -8207,6 +8207,7 @@ void InterpolateRow_AVX2(uint8_t* dst_ptr, ptrdiff_t src_stride, int dst_width, int source_y_fraction) { + size_t width_tmp = (size_t)(dst_width); asm volatile( "cmp $0x0,%3 \n" "je 100f \n" @@ -8269,7 +8270,7 @@ void InterpolateRow_AVX2(uint8_t* dst_ptr, "999: \n" : "+D"(dst_ptr), // %0 "+S"(src_ptr), // %1 - "+cm"(dst_width), // %2 + "+c"(width_tmp), // %2 "+r"(source_y_fraction) // %3 : "r"((intptr_t)(src_stride)) // %4 : "memory", "cc", "eax", "xmm0", "xmm1", "xmm2", "xmm4", "xmm5");