Lines Matching refs:diff
625 int diff = fMin(DFRACT_BITS - 1, new_summand_sf - total_power_low_sf);
626 total_power_low >>= diff;
1823 int diff;
1826 diff = (int)(nrgGain_e[band] - filtBuffer_e[band]);
1827 if (diff > 0) {
1829 diff; /* Compensate for the scale change by shifting the mantissa. */
1830 filtBuffer_e[band] += diff; /* New gain is bigger, use its exponent */
1831 } else if (diff < 0) {
1837 if ((-diff) <= reserve) {
1841 filtBuffer[band] <<= (-diff);
1842 filtBuffer_e[band] += diff; /* becomes equal to *ptrNewExp */
1849 diff = fixMin(-(reserve + diff), DFRACT_BITS - 1);
1850 nrgGain[band] >>= diff;
1851 nrgGain_e[band] += diff;