static inline void quantize_coefs(double *coef, int *idx, float *lpc, int order,

                                  int c_bits)

{

    int i;

    const float *quant_arr = tns_tmp2_map[c_bits];

    for (i = 0; i < order; i++) {

        idx[i] = quant_array_idx((float)coef[i], quant_arr, c_bits ? 16 : 8);

        lpc[i] = quant_arr[idx[i]];

    }

}

static inline void quantize_coefs(double *coef, int *idx, float *lpc, int order,

                                  int c_bits)

{

    int i;

    const float *quant_arr = tns_tmp2_map[c_bits];

    for (i = 0; i < order; i++) {

        idx[i] = quant_array_idx((float)coef[i], quant_arr, c_bits ? 16 : 8);

        lpc[i] = quant_arr[idx[i]];

    }

}

static inline void FUNC_0(double *VAR_0, int *VAR_1, float *VAR_2, int VAR_3,

                                  int VAR_4)

{

    int VAR_5;

    const float *VAR_6 = tns_tmp2_map[VAR_4];

    for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5++) {

        VAR_1[VAR_5] = quant_array_idx((float)VAR_0[VAR_5], VAR_6, VAR_4 ? 16 : 8);

        VAR_2[VAR_5] = VAR_6[VAR_1[VAR_5]];

    }

}

static inline void FUNC_0(double *VAR_0, int *VAR_1, float *VAR_2, int VAR_3,
int VAR_4)
{ int VAR_5; const float *VAR_6 = tns_tmp2_map[VAR_4]; for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5++) { VAR_1[VAR_5] = quant_array_idx((float)VAR_0[VAR_5], VAR_6, VAR_4 ? 16 : 8); VAR_2[VAR_5] = VAR_6[VAR_1[VAR_5]]; } }