From db5a71c528193af6bb32e87f6186163065f22905 Mon Sep 17 00:00:00 2001 From: George Steed Date: Fri, 13 Dec 2024 10:00:20 +0000 Subject: [PATCH] [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 Reviewed-by: Justin Green Commit-Queue: Mirko Bonadei --- source/row_sme.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/row_sme.cc b/source/row_sme.cc index dfdd3e19a..561b7f73d 100644 --- a/source/row_sme.cc +++ b/source/row_sme.cc @@ -805,8 +805,6 @@ __arm_locally_streaming static void HalfRow_16_SME(uint16_t* dst_ptr, const uint16_t* src_ptr, ptrdiff_t src_stride, int width) { - int y1_fraction = 128; - int y0_fraction = 256 - y1_fraction; const uint16_t* src_ptr1 = src_ptr + src_stride; int vl; @@ -933,8 +931,6 @@ __arm_locally_streaming static void HalfRow_16To8_SME(uint8_t* dst_ptr, ptrdiff_t src_stride, int scale, int width) { - int y1_fraction = 128; - int y0_fraction = 256 - y1_fraction; const uint16_t* src_ptr1 = src_ptr + src_stride; // 15 - clz(scale), + 8 to shift result into the high half of the lane to