[FFmpeg-cvslog] swscale/x86/yuv2yuvX: use the movsxdifnidn helper macro

James Almer git at videolan.org
Thu Feb 18 23:52:39 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Feb 18 12:09:27 2021 -0300| [1a555d3c604804dcedacd230d410cfc822da3f4c] | committer: James Almer

swscale/x86/yuv2yuvX: use the movsxdifnidn helper macro

Simplifies code

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a555d3c604804dcedacd230d410cfc822da3f4c
---

 libswscale/x86/yuv2yuvX.asm | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/libswscale/x86/yuv2yuvX.asm b/libswscale/x86/yuv2yuvX.asm
index 062028471a..521880dabe 100644
--- a/libswscale/x86/yuv2yuvX.asm
+++ b/libswscale/x86/yuv2yuvX.asm
@@ -40,11 +40,9 @@ cglobal yuv2yuvX, 7, 7, 8, filter, filterSize, src, dest, dstW, dither, offset
 %else
 %define movr movdqu
 %endif
-%if ARCH_X86_64
-    movsxd               dstWq, dstWd
-    movsxd               offsetq, offsetd
-    movsxd               srcq, srcd
-%endif ; x86-64
+    movsxdifnidn         dstWq, dstWd
+    movsxdifnidn         offsetq, offsetd
+    movsxdifnidn         srcq, srcd
 %if cpuflag(avx2)
     vpbroadcastq         m3, [ditherq]
 %else



More information about the ffmpeg-cvslog mailing list