[x264-devel] [PATCH 1/6] aarch64: Correctly sign extend int parameters in x264_plane_copy_core_neon

Martin Storsjö martin at martin.st
Mon Nov 14 22:54:48 CET 2016


---
 common/aarch64/mc-a.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/aarch64/mc-a.S b/common/aarch64/mc-a.S
index 3a99fbe..a7a383d 100644
--- a/common/aarch64/mc-a.S
+++ b/common/aarch64/mc-a.S
@@ -1256,8 +1256,8 @@ endfunc
 function x264_plane_copy_core_neon, export=1
     add         x8,  x4,  #15
     and         x4,  x8,  #~15
-    sub         x1,  x1,  x4
-    sub         x3,  x3,  x4
+    sub         x1,  x1,  w4, sxtw
+    sub         x3,  x3,  w4, sxtw
 1:
     mov         w8,  w4
 16:
-- 
2.7.4



More information about the x264-devel mailing list