34 float minmeasure,measure, *cb, scale;
48 }
else if (cblen == 16) {
56 minmeasure=10000000.0;
58 for (i=0; i<cblen; i++) {
64 measure=(
in-scale*cb[i])*(
in-scale*cb[i]);
66 if (measure<minmeasure) {
75 return scale*cb[tindex];
92 scale=(float)fabs(maxIn);
102 }
else if (cblen==16) {
105 else if (cblen==32) {
float gaindequant(int index, float maxIn, int cblen)
float gainquant(float in, float maxIn, int cblen, int *index)