void lsp_quant_nb(float *lsp, float *qlsp, int order, SpeexBits *bits)
void lsp_quant_nb(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits)
void lsp_quant_nb(float *lsp, float *qlsp, int order, SpeexBits *bits){   int i;   float tmp1, tmp2;   int id;   /* FIXME: get rid of that static allocation */   spx_word16_t nlsp[10];      for (i=0;i<order;i++)      qlsp[i]=lsp[i];   quant_weight[0] = 10/(qlsp[1]-qlsp[0]);   quant_weight[order-1] = 10/(qlsp[order-1]-qlsp[order-2]);   for (i=1;i<order-1;i++)   {#if 1      tmp1 = 10/((.15+qlsp[i]-qlsp[i-1])*(.15+qlsp[i]-qlsp[i-1]));      tmp2 = 10/((.15+qlsp[i+1]-qlsp[i])*(.15+qlsp[i+1]-qlsp[i]));#else      tmp1 = 10/(qlsp[i]-qlsp[i-1]);      tmp2 = 10/(qlsp[i+1]-qlsp[i]);#endif      quant_weight[i] = tmp1 > tmp2 ? tmp1 : tmp2;   }   for (i=0;i<order;i++)      qlsp[i]-=(.25*i+.25);#ifdef FIXED_POINT   for (i=0;i<order;i++)      nlsp[i]=floor(.5+qlsp[i]*LSP_SCALE);#else   for (i=0;i<order;i++)      nlsp[i] = LSP_SCALE*qlsp[i];#endif   id = lsp_quant(nlsp, cdbk_nb, NB_CDBK_SIZE, order);   speex_bits_pack(bits, id, 6);   for (i=0;i<order;i++)      nlsp[i]*=2;    id = lsp_weight_quant(nlsp, quant_weight, cdbk_nb_low1, NB_CDBK_SIZE_LOW1, 5);   speex_bits_pack(bits, id, 6);   for (i=0;i<5;i++)      nlsp[i]*=2;   id = lsp_weight_quant(nlsp, quant_weight, cdbk_nb_low2, NB_CDBK_SIZE_LOW2, 5);   speex_bits_pack(bits, id, 6);   id = lsp_weight_quant(nlsp+5, quant_weight+5, cdbk_nb_high1, NB_CDBK_SIZE_HIGH1, 5);   speex_bits_pack(bits, id, 6);   for (i=5;i<10;i++)      nlsp[i]*=2;   id = lsp_weight_quant(nlsp+5, quant_weight+5, cdbk_nb_high2, NB_CDBK_SIZE_HIGH2, 5);   speex_bits_pack(bits, id, 6);   for (i=0;i<order;i++)      qlsp[i]=nlsp[i] * (.00097656/LSP_OVERSCALE);   for (i=0;i<order;i++)      qlsp[i]=lsp[i]-qlsp[i];}