[FFmpeg-cvslog] swscale/x86/yuv2yuvX: use movq to load 8 bytes in all non-AVX2 functions

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


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

swscale/x86/yuv2yuvX: use movq to load 8 bytes in all non-AVX2 functions

mova expands to movq on non-XMM functions

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

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

 libswscale/x86/yuv2yuvX.asm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libswscale/x86/yuv2yuvX.asm b/libswscale/x86/yuv2yuvX.asm
index a6b70d5247..062028471a 100644
--- a/libswscale/x86/yuv2yuvX.asm
+++ b/libswscale/x86/yuv2yuvX.asm
@@ -47,10 +47,8 @@ cglobal yuv2yuvX, 7, 7, 8, filter, filterSize, src, dest, dstW, dither, offset
 %endif ; x86-64
 %if cpuflag(avx2)
     vpbroadcastq         m3, [ditherq]
-%elif cpuflag(sse3)
-    movq                 xmm3, [ditherq]
 %else
-    mova                 m3, [ditherq]
+    movq                 xm3, [ditherq]
 %endif ; avx2
     cmp                  offsetd, 0
     jz                   .offset



More information about the ffmpeg-cvslog mailing list