# HG changeset patch # User voroshil # Date 1210500431 0 # Node ID 1f02f929b9ffd0e4b85dbddf53c9b73260d2a2b2 # Parent ca449dc51bd7782768aac9e773a1a8e6b96f4a20 Update comment to version, negotiated with Diego, and fix missing period (not latest revision of patch was wrongly committed). diff -r ca449dc51bd7 -r 1f02f929b9ff acelp_filters.c --- a/acelp_filters.c Sun May 11 05:28:29 2008 +0000 +++ b/acelp_filters.c Sun May 11 10:07:11 2008 +0000 @@ -37,13 +37,12 @@ memset(fc_out, 0, subframe_size * sizeof(int16_t)); - /* Since there are few pulses over entire subframe (i.e. almost all - fc_in[i] are zero, in case of G.729D the buffer contains two non-zero - samples before the call to ff_acelp_enhance_harmonics, and (due to - pitch_delay bounded to [20; 143]) a maximum four non-zero samples - for a total of 40 after the call to it), it is faster to swap two loops - and process non-zero samples only. This will reduce the number of - multiplications from 40*40 to 4*40 for G.729D */ + /* Since there are few pulses over an entire subframe (i.e. almost + all fc_in[i] are zero) it is faster to swap two loops and process + non-zero samples only. In the case of G.729D the buffer contains + two non-zero samples before the call to ff_acelp_enhance_harmonics + and, due to pitch_delay being bounded by [20; 143], a maximum + of four non-zero samples for a total of 40 after the call. */ for(i=0; i