/* Evaluate the LPC filter coefficients from the reflection coefficients. Does the inverse of the eval_refl() function.  */
static void eval_coefs(int *coefs, const int *refl)
/* Evaluate the LPC filter coefficients from the reflection coefficients. Does the inverse of the eval_refl() function.  */
static void eval_coefs(int *coefs, const int *refl)
{
    int buffer[10];
    int *b1 = buffer;
    int *b2 = coefs;
    int i, j;
    for (i=0; i < 10; i++) {
        b1[i] = refl[i] << 4;
        for (j=0; j < i; j++)
            b1[j] = ((refl[i] * b2[i-j-1]) >> 12) + b2[j];
        FFSWAP(int *, b1, b2);
    }
    for (i=0; i < 10; i++)
        coefs[i] >>= 4;
}