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 <rrwinterton@gmail.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
Frank Barchard 2021-12-09 19:29:06 -08:00 committed by libyuv LUCI CQ
parent d7a2d5da87
commit fdc71956bd

View File

@ -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");