aboutsummaryrefslogtreecommitdiff
path: root/source/row_neon.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2022-02-23 00:46:55 -0800
committerlibyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-02-23 19:16:53 +0000
commite77531f6f149340428d8a1076d0a1473bdec8c09 (patch)
tree2745e956c547d6fc20b30c17651740f51f2ff366 /source/row_neon.cc
parent3b8c86d23a2dfca026c42fa6d93ea89c6c5beda4 (diff)
downloadlibyuv-e77531f6f149340428d8a1076d0a1473bdec8c09.tar.gz
Fix RotatePlane by 90 on Neon when source width is not a multiple of 8
Bug: b/220888716, b/218875554, b/220205245 Change-Id: I17e118ac9b9a7013386a5f0ad27a2dd249474ae5 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3483576 Reviewed-by: Mirko Bonadei <mbonadei@chromium.org> Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/row_neon.cc')
-rw-r--r--source/row_neon.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/row_neon.cc b/source/row_neon.cc
index 4781e2f6..e1063236 100644
--- a/source/row_neon.cc
+++ b/source/row_neon.cc
@@ -585,11 +585,11 @@ void DetileRow_NEON(const uint8_t* src,
int width) {
asm volatile(
"1: \n"
- "vld1.16 {q0}, [%0], %3 \n" // load 16 bytes
- "subs %2, %2, #16 \n" // 16 processed per loop
- "pld [%0, 1792] \n"
- "vst1.16 {q0}, [%1]! \n" // store 16 bytes
- "bgt 1b \n"
+ "vld1.16 {q0}, [%0], %3 \n" // load 16 bytes
+ "subs %2, %2, #16 \n" // 16 processed per loop
+ "pld [%0, 1792] \n"
+ "vst1.16 {q0}, [%1]! \n" // store 16 bytes
+ "bgt 1b \n"
: "+r"(src), // %0
"+r"(dst), // %1
"+r"(width) // %2
@@ -608,7 +608,7 @@ void DetileSplitUVRow_NEON(const uint8_t* src_uv,
"1: \n"
"vld2.8 {d0, d1}, [%0], %4 \n"
"subs %3, %3, #16 \n"
- "pld [%0, 1792] \n"
+ "pld [%0, 1792] \n"
"vst1.8 {d0}, [%1]! \n"
"vst1.8 {d1}, [%2]! \n"
"bgt 1b \n"