# HG changeset patch # User michael # Date 1219358480 0 # Node ID 1e4ae5de68a4d1df9959026e07fbff2b8ac952bf # Parent 8c5d7ede9c96fd467a4631944a579fbbd1b2fc72 Rename subframe_size to a name that is not specific to some specific use of ff_acelp_convolve_circ() diff -r 8c5d7ede9c96 -r 1e4ae5de68a4 acelp_filters.c --- a/acelp_filters.c Thu Aug 21 22:36:32 2008 +0000 +++ b/acelp_filters.c Thu Aug 21 22:41:20 2008 +0000 @@ -85,22 +85,22 @@ int16_t* fc_out, const int16_t* fc_in, const int16_t* filter, - int subframe_size) + int len) { int i, k; - memset(fc_out, 0, subframe_size * sizeof(int16_t)); + memset(fc_out, 0, len * sizeof(int16_t)); /* Since there are few pulses over an entire subframe (i.e. almost all fc_in[i] are zero) it is faster to loop over fc_in first. */ - for(i=0; i> 15; + fc_out[k] += (fc_in[i] * filter[len + k - i]) >> 15; - for(k=i; k> 15; } } diff -r 8c5d7ede9c96 -r 1e4ae5de68a4 acelp_filters.h --- a/acelp_filters.h Thu Aug 21 22:36:32 2008 +0000 +++ b/acelp_filters.h Thu Aug 21 22:41:20 2008 +0000 @@ -75,7 +75,7 @@ int16_t* fc_out, const int16_t* fc_in, const int16_t* filter, - int subframe_size); + int len); /** * LP synthesis filter.