mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 18:31:37 +00:00
x86util: Extend SPLATW for avx2
Integration to Libav by Josh de Kock <josh@itanimul.li>. Signed-off-by: Alexandra Hájková <alexandra@khirnov.net>
This commit is contained in:
parent
37961044c6
commit
fd5e6a095f
@ -552,7 +552,9 @@
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro SPLATW 2-3 0
|
%macro SPLATW 2-3 0
|
||||||
%if mmsize == 16
|
%if cpuflag(avx2) && %3 == 0
|
||||||
|
vpbroadcastw %1, %2
|
||||||
|
%elif mmsize == 16
|
||||||
pshuflw %1, %2, (%3)*0x55
|
pshuflw %1, %2, (%3)*0x55
|
||||||
punpcklqdq %1, %1
|
punpcklqdq %1, %1
|
||||||
%elif cpuflag(mmxext)
|
%elif cpuflag(mmxext)
|
||||||
|
Loading…
Reference in New Issue
Block a user