Lines Matching refs:nrg
659 static FIXP_DBL mhLoweringEnergy(FIXP_DBL nrg, INT M) { in mhLoweringEnergy() argument
672 tmpScale = CountLeadingBits(nrg); in mhLoweringEnergy()
673 nrg <<= tmpScale; in mhLoweringEnergy()
674 nrg = fMult(nrg, FL2FXCONST_DBL(0.398107267f)); /* The maximum boost in mhLoweringEnergy()
680 nrg >>= tmpScale; in mhLoweringEnergy()
683 nrg >>= 1; in mhLoweringEnergy()
687 return nrg; in mhLoweringEnergy()
698 static FIXP_DBL nmhLoweringEnergy(FIXP_DBL nrg, const FIXP_DBL nrgSum, in nmhLoweringEnergy() argument
700 if (nrg > FL2FXCONST_DBL(0)) { in nmhLoweringEnergy()
703 FIXP_DBL gain = fMult(fDivNorm(nrgSum, nrg, &sc), GetInvInt(M + 1)); in nmhLoweringEnergy()
708 nrg = fMult(scaleValue(gain, sc), nrg); in nmhLoweringEnergy()
711 return nrg; in nmhLoweringEnergy()