Lines Matching refs:finalShift
666 INT finalShift = MAX_SHIFT_DBL;
709 finalShift = fixMin(minSpecShift, nrgShift);
713 if (finalShift > psyData[0]->mdctScale + 3 )
714 finalShift = psyData[0]->mdctScale + 3;
716 FDK_ASSERT(finalShift >= 0); /* right shift is not allowed */
718 /* correct sfbEnergy and sfbEnergyLdData with new finalShift */
719 FIXP_DBL ldShift = finalShift * FL2FXCONST_DBL(2.0/64);
724 scale = fixMin((scale-finalShift)<<1, DFRACT_BITS-1);
733 if ( finalShift != 0 ) {
738 psyData[ch]->mdctSpectrum[line+wOffset] <<= finalShift;
742 (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb] -= finalShift;
745 psyData[ch]->mdctScale -= finalShift;