aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/sbrdsp.asm
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-07 01:51:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-07 01:51:10 +0100
commitc526a01c91979e907be3f5b475eadc663c03aadb (patch)
tree02b7a1ed5020012c05d00c70eca384e41c95ff40 /libavcodec/x86/sbrdsp.asm
parent8429320313a3bca0b2ce789b612ac3df51968a70 (diff)
parent4f50646697606df39317b93c2a427603b77636ee (diff)
downloadffmpeg-c526a01c91979e907be3f5b475eadc663c03aadb.tar.gz
Merge commit '4f50646697606df39317b93c2a427603b77636ee'
* commit '4f50646697606df39317b93c2a427603b77636ee': x86: sbrdsp: Implement SSE qmf_post_shuffle Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/sbrdsp.asm')
-rw-r--r--libavcodec/x86/sbrdsp.asm20
1 files changed, 20 insertions, 0 deletions
diff --git a/libavcodec/x86/sbrdsp.asm b/libavcodec/x86/sbrdsp.asm
index 6cde1a8e4e..1b7f3a8646 100644
--- a/libavcodec/x86/sbrdsp.asm
+++ b/libavcodec/x86/sbrdsp.asm
@@ -24,6 +24,7 @@
SECTION_RODATA
; mask equivalent for multiply by -1.0 1.0
ps_mask times 2 dd 1<<31, 0
+ps_neg times 4 dd 1<<31
SECTION_TEXT
@@ -200,3 +201,22 @@ cglobal sbr_sum64x5, 1,2,4,z
cmp zq, r1q
jne .loop
REP_RET
+
+INIT_XMM sse
+cglobal sbr_qmf_post_shuffle, 2,3,4,W,z
+ lea r2q, [zq + (64-4)*4]
+ mova m3, [ps_neg]
+.loop:
+ mova m1, [zq]
+ xorps m0, m3, [r2q]
+ shufps m0, m0, m0, q0123
+ unpcklps m2, m0, m1
+ unpckhps m0, m0, m1
+ mova [Wq + 0], m2
+ mova [Wq + 16], m0
+ add Wq, 32
+ sub r2q, 16
+ add zq, 16
+ cmp zq, r2q
+ jl .loop
+ REP_RET