]> git.sesse.net Git - ffmpeg/commitdiff
swscale/x86/yuv2yuvX: use the movsxdifnidn helper macro
authorJames Almer <jamrial@gmail.com>
Thu, 18 Feb 2021 15:09:27 +0000 (12:09 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 18 Feb 2021 21:47:43 +0000 (18:47 -0300)
Simplifies code

Signed-off-by: James Almer <jamrial@gmail.com>
libswscale/x86/yuv2yuvX.asm

index 062028471aad4b997f24b5d6f8d627d0f17ddfff..521880dabebcbac5b41ca397f39ce9444b5db840 100644 (file)
@@ -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