diff options
author | James Almer <jamrial@gmail.com> | 2016-06-28 14:22:40 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2016-07-18 16:27:13 +0300 |
commit | fd5e6a095f69495c558069315d6b36ea410c31fa (patch) | |
tree | f7f7aae29c4d1da00eb080482b85abe067c2ba54 /libavutil/x86/x86util.asm | |
parent | 37961044c6cc633c28d87293775d8e985d156921 (diff) |
x86util: Extend SPLATW for avx2
Integration to Libav by Josh de Kock <josh@itanimul.li>.
Signed-off-by: Alexandra Hájková <alexandra@khirnov.net>
Diffstat (limited to 'libavutil/x86/x86util.asm')
-rw-r--r-- | libavutil/x86/x86util.asm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index 9f64dd13e1..16a9baef7a 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -552,7 +552,9 @@ %endmacro %macro SPLATW 2-3 0 -%if mmsize == 16 +%if cpuflag(avx2) && %3 == 0 + vpbroadcastw %1, %2 +%elif mmsize == 16 pshuflw %1, %2, (%3)*0x55 punpcklqdq %1, %1 %elif cpuflag(mmxext) |