aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/arm/dcadsp_neon.S
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-02-14 15:03:06 +0000
committerJanne Grunau <janne-libav@jannau.net>2014-02-28 13:00:47 +0100
commit87ec849fe9acba075c843e67bcd01f256f481a18 (patch)
treee071371104bda0f397ec2b647f90ae8d5a898bc1 /libavcodec/arm/dcadsp_neon.S
parenta55546f48d55e3d1155840541b2be5f4f8cf18ab (diff)
downloadffmpeg-87ec849fe9acba075c843e67bcd01f256f481a18.tar.gz
dcadec: remove scaling in lfe_interpolation_fir
The scaling factor is constant so it is faster to scale the FIR coefficients in the tables during compilation. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec/arm/dcadsp_neon.S')
-rw-r--r--libavcodec/arm/dcadsp_neon.S5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/arm/dcadsp_neon.S b/libavcodec/arm/dcadsp_neon.S
index c798fea7f7..735c4c28e5 100644
--- a/libavcodec/arm/dcadsp_neon.S
+++ b/libavcodec/arm/dcadsp_neon.S
@@ -22,7 +22,6 @@
function ff_dca_lfe_fir0_neon, export=1
push {r4-r6,lr}
-NOVFP vmov s0, r3 @ scale
mov r3, #32 @ decifactor
mov r6, #256/32
b dca_lfe_fir
@@ -30,7 +29,6 @@ endfunc
function ff_dca_lfe_fir1_neon, export=1
push {r4-r6,lr}
-NOVFP vmov s0, r3 @ scale
mov r3, #64 @ decifactor
mov r6, #256/64
dca_lfe_fir:
@@ -57,8 +55,7 @@ dca_lfe_fir:
subs r3, r3, #1
vadd.f32 d4, d4, d5
vadd.f32 d6, d6, d7
- vpadd.f32 d4, d4, d6
- vmul.f32 d5, d4, d0[0]
+ vpadd.f32 d5, d4, d6
vst1.32 {d5[0]}, [r0,:32]!
vst1.32 {d5[1]}, [r4,:32]!
bne 1b