Skip to content

Commit

Permalink
swscale/x86/yuv2yuvX: use the SPLATW helper macro
Browse files Browse the repository at this point in the history
Simplifies code

Signed-off-by: James Almer <[email protected]>
  • Loading branch information
jamrial committed Feb 18, 2021
1 parent c005676 commit d512ebb
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions libswscale/x86/yuv2yuvX.asm
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,8 @@ cglobal yuv2yuvX, 7, 7, 8, filter, filterSize, src, dest, dstW, dither, offset

.offset:
add offsetq, srcq
%if cpuflag(avx2)
movd xmm1, filterSized
vpbroadcastw m1, xmm1
%elif cpuflag(sse3)
movd xmm1, filterSized
pshuflw m1, m1, q0000
punpcklqdq m1, m1
%else
movd m1, filterSized
punpcklwd m1, m1
punpckldq m1, m1
%endif ; avx2
movd xm1, filterSized
SPLATW m1, xm1, 0
pxor m0, m0, m0
mov filterSizeq, filterq
mov srcq, [filterSizeq]
Expand Down

0 comments on commit d512ebb

Please sign in to comment.