57 for (k = 0; k <= 159; k++)
71 if (scalauto > 0 && scalauto <= 4)
74 for (k = 0; k <= 159; k++)
84 #define STEP(k) L_ACF[k] += ((longword)sl * sp[ -(k) ]); 86 #define NEXTI sl = *++sp 87 for (k = 8; k >= 0; k--)
134 for (i = 8; i <= 159; i++)
150 for (k = 8; k >= 0; k--)
157 for (k = 159; k >= 0; k--)
167 register int i, m, n;
178 for (i = 8; i > 0; i--)
184 for (i = 0; i <= 8; i++)
185 ACF[i] =
SASR (L_ACF[i] << temp, 16);
190 for (i = 1; i <= 7; i++)
192 for (i = 0; i <= 8; i++)
197 for (n = 1; n <= 8; n++, r++)
204 for (i = n; i <= 8; i++)
221 for (m = 1; m <= 8 - n; m++)
224 P[m] =
GSM_ADD (P[m + 1], temp);
250 for (i = 1; i <= 8; i++, r++)
260 else if (temp < 31130)
270 *r = *r < 0 ? -temp : temp;
292 # define STEP( A, B, MAC, MIC ) \ 293 temp = GSM_MULT( A, *LAR ); \ 294 temp = GSM_ADD( temp, B ); \ 295 temp = GSM_ADD( temp, 256 ); \ 296 temp = SASR( temp, 9 ); \ 297 *LAR = temp>MAC ? MAC - MIC : (temp<MIC ? 0 : temp - MIC); \ 300 STEP (20480, 0, 31, -32);
301 STEP (20480, 0, 31, -32);
302 STEP (20480, 2048, 15, -16);
303 STEP (20480, -2560, 15, -16);
305 STEP (13964, 94, 7, -8);
306 STEP (15360, -1792, 7, -8);
307 STEP (8534, -341, 3, -4);
308 STEP (9036, -1144, 3, -4);
void Autocorrelation(word *s, longword *L_ACF)
void Reflection_coefficients(longword *L_ACF, register word *r)
static const uint32_t k[]
void Transformation_to_Log_Area_Ratios(register word *r)
word gsm_norm(longword a)
void Quantization_and_coding(register word *LAR)
void Gsm_LPC_Analysis(word *s, word *LARc)
word gsm_div(word num, word denum)