[x265] [PATCH] AArch64: Fix missing pointer casts in mem_neon.h

Hari Limaye hari.limaye at arm.com
Tue Sep 10 07:54:53 UTC 2024


Add missing casts of the pointer operand in store_u8x4_strided_xN.
This fixes a compilation error with GCC.
---
 source/common/aarch64/mem-neon.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/common/aarch64/mem-neon.h b/source/common/aarch64/mem-neon.h
index 3251f3f52..90788a938 100644
--- a/source/common/aarch64/mem-neon.h
+++ b/source/common/aarch64/mem-neon.h
@@ -65,9 +65,9 @@ static void inline store_u8x4_strided_xN(uint8_t *d, intptr_t stride,
     assert(N % 2 == 0);
     for (int i = 0; i < N / 2; ++i)
     {
-        vst1_lane_u32(d, vreinterpret_u32_u8(s[i]), 0);
+        vst1_lane_u32((uint32_t *)d, vreinterpret_u32_u8(s[i]), 0);
         d += stride;
-        vst1_lane_u32(d, vreinterpret_u32_u8(s[i]), 1);
+        vst1_lane_u32((uint32_t *)d, vreinterpret_u32_u8(s[i]), 1);
         d += stride;
     }
 }
-- 
2.42.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AArch64-Fix-missing-pointer-casts-in-mem_neon.h.patch
Type: text/x-patch
Size: 1090 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20240910/6637d3ab/attachment.bin>


More information about the x265-devel mailing list