diff options
author | Frank Barchard <fbarchard@google.com> | 2022-06-09 00:14:11 -0700 |
---|---|---|
committer | Frank Barchard <fbarchard@chromium.org> | 2022-06-09 08:07:50 +0000 |
commit | 30f9b280487be412da346aecce7834275020976e (patch) | |
tree | c2a25c57cc14465127cdae5b41f07fff517c3d7d /source/row_neon.cc | |
parent | baef41447887e1a17897a4cb6ccc854ef3a9d652 (diff) | |
download | libyuv-30f9b280487be412da346aecce7834275020976e.tar.gz |
Add I210ToI420
Bug: libyuv:931, b/228605787, b/233233302, b/233634772, b/234558395, b/234340482
Change-Id: Ib135d0b4ff17665f6a4ab60edb782a7b314219a4
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3696042
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
Diffstat (limited to 'source/row_neon.cc')
-rw-r--r-- | source/row_neon.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/row_neon.cc b/source/row_neon.cc index 1d912b85..653fd203 100644 --- a/source/row_neon.cc +++ b/source/row_neon.cc @@ -3717,13 +3717,13 @@ void Convert16To8Row_NEON(const uint16_t* src_y, uint8_t* dst_y, int scale, int width) { - int shift = 15 - __builtin_clz(scale); // Negative for shl will shift right + int shift = 15 - __builtin_clz((int32_t)scale); // Negative shl is shr asm volatile( "vdup.16 q2, %3 \n" "1: \n" "vld1.16 {q0}, [%0]! \n" "vld1.16 {q1}, [%0]! \n" - "vshl.u16 q0, q0, q2 \n" + "vshl.u16 q0, q0, q2 \n" // shr = q2 is negative "vshl.u16 q1, q1, q2 \n" "vqmovn.u16 d0, q0 \n" "vqmovn.u16 d1, q1 \n" |