code: public static void lsp_get_quant(
  	 float  lspcb1[][],    /*input : first stage LSP codebook     */
  	 float  lspcb2[][],    /*input : Second stage LSP codebook    */
  	 int    code0,          /*input : selected code of first stage */
  	 int    code1,          /*input : selected code of second stage*/
  	 int    code2,          /*input : selected code of second stage*/
  	 float  fg[][],        /*input : MA prediction coef.          */
  	 float  freq_prev[][], /*input : previous LSP vector          */
  	 float  lspq[],         /*output: quantized LSP parameters     */
  	 float  fg_sum[]        /*input : present MA prediction coef.  */
  	)
  	{
  	   int  j;
  	   float  buf[] = new float[LD8KConstants.M];
  
  
  	   for(j=0; j<LD8KConstants.NC; j++)
  	     buf[j] = lspcb1[code0][j] + lspcb2[code1][j];
  	   for(j=LD8KConstants.NC; j<LD8KConstants.M; j++)
  	     buf[j] = lspcb1[code0][j] + lspcb2[code2][j];
  
  	   /* check */
  	   lsp_expand_1_2(buf, LD8KConstants.GAP1);
  	   lsp_expand_1_2(buf, LD8KConstants.GAP2);
  
  	   /* reconstruct quantized LSP parameters */
  	   lsp_prev_compose(buf, lspq, fg, freq_prev, fg_sum);
  
  	   lsp_prev_update(buf, freq_prev);
  
  	   lsp_stability( lspq );  /* check the stabilty */
  
  	   return;
  	}
docs: /*----------------------------------------------------------------------------
  lsp_get_quant - reconstruct quantized LSP parameter and check the stabilty
  ----------------------------------------------------------------------------