mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
[AArch64] Remove unused variables in HalfRow_{16To8,16}_SME
The HalfRow kernels assume that the fraction is exactly half, so there is no need to calculate it. No-Try: True Change-Id: I2319d55ba99f202aa22c9693ec44c9891e7f72d5 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6087914 Reviewed-by: Wan-Teh Chang <wtc@google.com> Reviewed-by: Justin Green <greenjustin@google.com> Commit-Queue: Mirko Bonadei <mbonadei@chromium.org>
This commit is contained in:
parent
7fd0bd197e
commit
db5a71c528
@ -805,8 +805,6 @@ __arm_locally_streaming static void HalfRow_16_SME(uint16_t* dst_ptr,
|
|||||||
const uint16_t* src_ptr,
|
const uint16_t* src_ptr,
|
||||||
ptrdiff_t src_stride,
|
ptrdiff_t src_stride,
|
||||||
int width) {
|
int width) {
|
||||||
int y1_fraction = 128;
|
|
||||||
int y0_fraction = 256 - y1_fraction;
|
|
||||||
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
||||||
|
|
||||||
int vl;
|
int vl;
|
||||||
@ -933,8 +931,6 @@ __arm_locally_streaming static void HalfRow_16To8_SME(uint8_t* dst_ptr,
|
|||||||
ptrdiff_t src_stride,
|
ptrdiff_t src_stride,
|
||||||
int scale,
|
int scale,
|
||||||
int width) {
|
int width) {
|
||||||
int y1_fraction = 128;
|
|
||||||
int y0_fraction = 256 - y1_fraction;
|
|
||||||
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
const uint16_t* src_ptr1 = src_ptr + src_stride;
|
||||||
|
|
||||||
// 15 - clz(scale), + 8 to shift result into the high half of the lane to
|
// 15 - clz(scale), + 8 to shift result into the high half of the lane to
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user