Browse Source

swscale/x86/yuv2yuvX: use the movsxdifnidn helper macro

Simplifies code

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.4
James Almer 4 years ago
parent
commit
1a555d3c60
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      libswscale/x86/yuv2yuvX.asm

+ 3
- 5
libswscale/x86/yuv2yuvX.asm View 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


Loading…
Cancel
Save