summaryrefslogtreecommitdiff
path: root/silk/LPC_analysis_filter.c
diff options
context:
space:
mode:
authorLinfeng Zhang <linfengz@google.com>2016-06-16 16:21:02 -0700
committerFelicia Lim <flim@google.com>2017-01-17 14:04:37 -0800
commit783ad76766e1f6b6aaca5d6eb415ac8a8269e1f2 (patch)
tree120458893d45586c9c1f3ee07135a71b4d22fc01 /silk/LPC_analysis_filter.c
parentc9ba55208c842a1681d82e7d7ff44fafedd2a853 (diff)
downloadopus-783ad76766e1f6b6aaca5d6eb415ac8a8269e1f2.tar.gz
Revise celt_fir_c() to not pass in argument "mem"
The "mem" in celt_fir_c() either is contained in the head of input "x" in reverse order already, or can be easily attached to the head of "x" before calling the function. Removing argument "mem" can eliminate the redundant buffer copies inside. Update celt_fir_sse4_1() accordingly.
Diffstat (limited to 'silk/LPC_analysis_filter.c')
-rw-r--r--silk/LPC_analysis_filter.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/silk/LPC_analysis_filter.c b/silk/LPC_analysis_filter.c
index 3c616d7b..20330d54 100644
--- a/silk/LPC_analysis_filter.c
+++ b/silk/LPC_analysis_filter.c
@@ -57,7 +57,6 @@ void silk_LPC_analysis_filter(
{
opus_int j;
#if USE_CELT_FIR
- opus_int16 mem[SILK_MAX_ORDER_LPC];
opus_int16 num[SILK_MAX_ORDER_LPC];
#else
int ix;
@@ -74,10 +73,7 @@ void silk_LPC_analysis_filter(
for ( j = 0; j < d; j++ ) {
num[ j ] = -B[ j ];
}
- for (j=0;j<d;j++) {
- mem[ j ] = in[ d - j - 1 ];
- }
- celt_fir( in + d, num, out + d, len - d, d, mem, arch );
+ celt_fir( in + d, num, out + d, len - d, d, arch );
for ( j = 0; j < d; j++ ) {
out[ j ] = 0;
}