void ff_acelp_lsf2lspd(double *lsp, const float *lsf, int lp_order)
{
    int i;
    for(i = 0; i < lp_order; i++)
        lsp[i] = cos(2.0 * M_PI * lsf[i]);
}
['static void lsf2lsp_5(AMRContext *p)\n{\n    const uint16_t *lsf_param = p->frame.lsf;\n    float lsf_no_r[LP_FILTER_ORDER];\n    const int16_t *lsf_quantizer[5];\n    int i;\n    lsf_quantizer[0] = lsf_5_1[lsf_param[0]];\n    lsf_quantizer[1] = lsf_5_2[lsf_param[1]];\n    lsf_quantizer[2] = lsf_5_3[lsf_param[2] >> 1];\n    lsf_quantizer[3] = lsf_5_4[lsf_param[3]];\n    lsf_quantizer[4] = lsf_5_5[lsf_param[4]];\n    for (i = 0; i < LP_FILTER_ORDER; i++)\n        lsf_no_r[i] = p->prev_lsf_r[i] * LSF_R_FAC * PRED_FAC_MODE_12k2 + lsf_5_mean[i];\n    lsf2lsp_for_mode12k2(p, p->lsp[1], lsf_no_r, lsf_quantizer, 0, lsf_param[2] & 1, 0);\n    lsf2lsp_for_mode12k2(p, p->lsp[3], lsf_no_r, lsf_quantizer, 2, lsf_param[2] & 1, 1);\n    weighted_vector_sumd(p->lsp[0], p->prev_lsp_sub4, p->lsp[1], 0.5, 0.5, LP_FILTER_ORDER);\n    weighted_vector_sumd(p->lsp[2], p->lsp[1]       , p->lsp[3], 0.5, 0.5, LP_FILTER_ORDER);\n}', 'static void lsf2lsp_for_mode12k2(AMRContext *p, double lsp[LP_FILTER_ORDER],\n                                 const float lsf_no_r[LP_FILTER_ORDER],\n                                 const int16_t *lsf_quantizer[5],\n                                 const int quantizer_offset,\n                                 const int sign, const int update)\n{\n    int16_t lsf_r[LP_FILTER_ORDER];\n    float lsf_q[LP_FILTER_ORDER];\n    int i;\n    for (i = 0; i < LP_FILTER_ORDER >> 1; i++)\n        memcpy(&lsf_r[i << 1], &lsf_quantizer[i][quantizer_offset],\n               2 * sizeof(*lsf_r));\n    if (sign) {\n        lsf_r[4] *= -1;\n        lsf_r[5] *= -1;\n    }\n    if (update)\n        memcpy(p->prev_lsf_r, lsf_r, LP_FILTER_ORDER * sizeof(float));\n    for (i = 0; i < LP_FILTER_ORDER; i++)\n        lsf_q[i] = lsf_r[i] * (LSF_R_FAC / 8000.0) + lsf_no_r[i] * (1.0 / 8000.0);\n    ff_set_min_dist_lsf(lsf_q, MIN_LSF_SPACING, LP_FILTER_ORDER);\n    if (update)\n        interpolate_lsf(p->lsf_q, lsf_q);\n    ff_acelp_lsf2lspd(lsp, lsf_q, LP_FILTER_ORDER);\n}', 'void ff_acelp_lsf2lspd(double *lsp, const float *lsf, int lp_order)\n{\n    int i;\n    for(i = 0; i < lp_order; i++)\n        lsp[i] = cos(2.0 * M_PI * lsf[i]);\n}']