float dist, tmp; float best_dist=0;
spx_word32_t dist; spx_word16_t tmp; spx_word32_t best_dist=0;
static int lsp_quant(float *x, signed char *cdbk, int nbVec, int nbDim){   int i,j;   float dist, tmp;   float best_dist=0;   int best_id=0;   signed char *ptr=cdbk;   for (i=0;i<nbVec;i++)   {      dist=0;      for (j=0;j<nbDim;j++)      {         tmp=(x[j]-*ptr++);         dist+=tmp*tmp;      }      if (dist<best_dist || i==0)      {         best_dist=dist;         best_id=i;      }   }   for (j=0;j<nbDim;j++)      x[j] -= cdbk[best_id*nbDim+j];       return best_id;}