[x265] [PATCH 11/12] AArch64: Remove explicit use of Neon functions from C

Hari Limaye hari.limaye at arm.com
Thu May 2 21:19:46 UTC 2024


Remove references to Neon primitives in source/common/pixel.cpp. The
correct AArch64 optimised primitives are enabled in architecture
specific files, so these do not belong here.

This also serves to enable compilation when X265_NS is changed by
removing hard-coded function prefixes.
---
 source/common/pixel.cpp | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/source/common/pixel.cpp b/source/common/pixel.cpp
index 3cd074cfa..06e5732bd 100644
--- a/source/common/pixel.cpp
+++ b/source/common/pixel.cpp
@@ -266,10 +266,6 @@ int satd4(const pixel* pix1, intptr_t stride_pix1, const pixel* pix2, intptr_t s
 {
     int satd = 0;

-#if ENABLE_ASSEMBLY && X265_ARCH_ARM64 && !HIGH_BIT_DEPTH
-    pixelcmp_t satd_4x4 = x265_pixel_satd_4x4_neon;
-#endif
-
     for (int row = 0; row < h; row += 4)
         for (int col = 0; col < w; col += 4)
             satd += satd_4x4(pix1 + row * stride_pix1 + col, stride_pix1,
@@ -284,10 +280,6 @@ int satd8(const pixel* pix1, intptr_t stride_pix1, const pixel* pix2, intptr_t s
 {
     int satd = 0;

-#if ENABLE_ASSEMBLY && X265_ARCH_ARM64 && !HIGH_BIT_DEPTH
-    pixelcmp_t satd_8x4 = x265_pixel_satd_8x4_neon;
-#endif
-
     for (int row = 0; row < h; row += 4)
         for (int col = 0; col < w; col += 8)
             satd += satd_8x4(pix1 + row * stride_pix1 + col, stride_pix1,
--
2.42.1

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the x265-devel mailing list