diff options
author | James Almer <jamrial@gmail.com> | 2021-02-18 12:09:27 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-02-18 18:47:43 -0300 |
commit | 1a555d3c604804dcedacd230d410cfc822da3f4c (patch) | |
tree | 4c719c179cc4378e4d0857433f5989393d252f16 | |
parent | ebb48d85a07551ca82965bb66b88e50606683b4d (diff) | |
download | ffmpeg-1a555d3c604804dcedacd230d410cfc822da3f4c.tar.gz |
swscale/x86/yuv2yuvX: use the movsxdifnidn helper macro
Simplifies code
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libswscale/x86/yuv2yuvX.asm | 8 |
1 files 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 |