diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-05-03 02:03:11 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-08-24 04:10:57 +0400 |
commit | 6092dafb5a542a3014f9ae7f692085f0e1027e57 (patch) | |
tree | 2eaf413e949104690c70ae871c15219f10f12a3a /libavutil | |
parent | 91851a7b37f4912bf8927e4ec9817ea9acd548f0 (diff) |
lavr: x86: optimized 6-channel s16 to fltp conversion
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/x86/x86util.asm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index 8450acd87c..a5d89a187a 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -637,3 +637,15 @@ %rotate 1 %endrep %endmacro + +%macro PMOVSXWD 2; dst, src +%if cpuflag(sse4) + pmovsxwd %1, %2 +%else + %ifnidn %1, %2 + mova %1, %2 + %endif + punpcklwd %1, %1 + psrad %1, 16 +%endif +%endmacro |