********************************************************************
function: LSP (also called LSF) conversion routines
- last mod: $Id: lsp.c,v 1.22 2002/07/17 21:28:37 xiphmont Exp $
+ last mod: $Id: lsp.c,v 1.23 2002/10/11 07:44:28 xiphmont Exp $
The LSP generation code is taken (with minimal modification and a
few bugfixes) from "On the Computation of the LSP Frequencies" by
}
static int comp(const void *a,const void *b){
- if(*(float *)a<*(float *)b)
- return(1);
- else
- return(-1);
+ return (*(float *)a<*(float *)b)-(*(float *)a>*(float *)b);
}
/* Newton-Raphson-Maehly actually functioned as a decent root finder,