On 07/07/16 11:25, Alexandra Hájková wrote:
> From: James Almer <[email protected]>
> 
> Integration to Libav by Josh de Kock <[email protected]>.
> 
> Signed-off-by: Alexandra Hájková <[email protected]>
> ---
>  libavutil/x86/x86util.asm | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm
> index 9f64dd1..16a9bae 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)
> 

Possibly fine if oracle survives it (the ones on luminem.org should run
on avx2-capable hardware).


_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to