if (lsp[0]<margin) lsp[0]=margin; if (lsp[len-1]>M_PI-margin) lsp[len-1]=M_PI-margin;
if (lsp[0]<LSP_SCALING*margin) lsp[0]=LSP_SCALING*margin; if (lsp[len-1]>LSP_SCALING*(M_PI-margin)) lsp[len-1]=LSP_SCALING*(M_PI-margin);
void lsp_enforce_margin(float *lsp, int len, float margin){   int i;   if (lsp[0]<margin)      lsp[0]=margin;   if (lsp[len-1]>M_PI-margin)      lsp[len-1]=M_PI-margin;   for (i=1;i<len-1;i++)   {      if (lsp[i]<lsp[i-1]+margin)         lsp[i]=lsp[i-1]+margin;      if (lsp[i]>lsp[i+1]-margin)         lsp[i]= .5* (lsp[i] + lsp[i+1]-margin);   }}