mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
swscale/x86/yuv2yuvX: use the movsxdifnidn helper macro
Simplifies code Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
ebb48d85a0
commit
1a555d3c60
@ -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…
Reference in New Issue
Block a user