diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2013-04-09 21:57:07 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-05-03 18:23:14 +0200 |
commit | 5a97469a4fd12ef0327292ad6062f89a5e055a62 (patch) | |
tree | 7f8c0724ef15233e2ab92d655d8c12bc6e5b90f9 /libavcodec/x86/sbrdsp.asm | |
parent | 769d921f3e4d3808320238f4f33b47cd492f1c04 (diff) | |
download | ffmpeg-5a97469a4fd12ef0327292ad6062f89a5e055a62.tar.gz |
x86: sbrdsp: Implement SSE2 qmf_deint_bfly
Sandybridge: 47 cycles
Having a loop counter is a 7 cycle gain.
Unrolling is another 7 cycle gain.
Working in reverse scan is another 6 cycles.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/x86/sbrdsp.asm')
-rw-r--r-- | libavcodec/x86/sbrdsp.asm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libavcodec/x86/sbrdsp.asm b/libavcodec/x86/sbrdsp.asm index 5e545055a7..bfc37c2a1f 100644 --- a/libavcodec/x86/sbrdsp.asm +++ b/libavcodec/x86/sbrdsp.asm @@ -245,3 +245,31 @@ cglobal sbr_neg_odd_64, 1,2,4,z cmp zq, r1q jne .loop REP_RET + +INIT_XMM sse2 +; sbr_qmf_deint_bfly(float *v, const float *src0, const float *src1) +cglobal sbr_qmf_deint_bfly, 3,5,8, v,src0,src1,vrev,c + mov cq, 64*4-2*mmsize + lea vrevq, [vq + 64*4] +.loop: + mova m0, [src0q+cq] + mova m1, [src1q] + mova m2, [src0q+cq+mmsize] + mova m3, [src1q+mmsize] + pshufd m4, m0, q0123 + pshufd m5, m1, q0123 + pshufd m6, m2, q0123 + pshufd m7, m3, q0123 + addps m3, m4 + subps m0, m7 + addps m1, m6 + subps m2, m5 + mova [vrevq], m1 + mova [vrevq+mmsize], m3 + mova [vq+cq], m0 + mova [vq+cq+mmsize], m2 + add src1q, 2*mmsize + add vrevq, 2*mmsize + sub cq, 2*mmsize + jge .loop + REP_RET |