aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/x86/yuv2yuvX.asm
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-02-18 12:07:45 -0300
committerJames Almer <jamrial@gmail.com>2021-02-18 18:47:43 -0300
commitd512ebbaedefc977d7628da4dc3ecfe4e52a066a (patch)
tree01debb051d30d1c6910f9395c1e8b37fa7fd4454 /libswscale/x86/yuv2yuvX.asm
parentc00567647e9002094255df755e18c719e75b3333 (diff)
downloadffmpeg-d512ebbaedefc977d7628da4dc3ecfe4e52a066a.tar.gz
swscale/x86/yuv2yuvX: use the SPLATW helper macro
Simplifies code Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libswscale/x86/yuv2yuvX.asm')
-rw-r--r--libswscale/x86/yuv2yuvX.asm14
1 files changed, 2 insertions, 12 deletions
diff --git a/libswscale/x86/yuv2yuvX.asm b/libswscale/x86/yuv2yuvX.asm
index 6d3ba96204..a6b70d5247 100644
--- a/libswscale/x86/yuv2yuvX.asm
+++ b/libswscale/x86/yuv2yuvX.asm
@@ -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]