Browse Source

x86util: Extend SPLATW for avx2

Integration to Libav by Josh de Kock <josh@itanimul.li>.

Signed-off-by: Alexandra Hájková <alexandra@khirnov.net>
tags/n3.3
James Almer Luca Barbato 9 years ago
parent
commit
fd5e6a095f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavutil/x86/x86util.asm

+ 3
- 1
libavutil/x86/x86util.asm View File

@@ -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)


Loading…
Cancel
Save