Lines Matching defs:shift

889           int shift = fixMin(DFRACT_BITS-1,(int)(h_sbr_cal_env->filtBufferNoise_e - noise_e));
891 h_sbr_cal_env->filtBufferNoise[k] <<= shift;
894 int shift = fixMin(DFRACT_BITS-1,-(int)(h_sbr_cal_env->filtBufferNoise_e - noise_e));
896 h_sbr_cal_env->filtBufferNoise[k] >>= shift;
938 int shift = (int) (noise_e - final_e);
940 filtBufferNoiseShift = shift; /* shifting of h_sbr_cal_env->filtBufferNoise[k] will be applied in function adjustTimeSlotHQ() */
941 if (shift>=0) {
942 shift = fixMin(DFRACT_BITS-1,shift);
944 pNrgs->nrgSine[k] <<= shift;
945 pNrgs->noiseLevel[k] <<= shift;
948 h_sbr_cal_env->filtBufferNoise[k] <<= shift;
953 shift = fixMin(DFRACT_BITS-1,-shift);
955 pNrgs->nrgSine[k] >>= shift;
956 pNrgs->noiseLevel[k] >>= shift;
959 h_sbr_cal_env->filtBufferNoise[k] >>= shift;
1233 int shift) /*!< number of bits to shift */
1237 if ( (width > 0) && (shift!=0) ) {
1240 scaleValues(&re[l][lowSubband], width, shift);
1241 scaleValues(&im[l][lowSubband], width, shift);
1246 scaleValues(&re[l][lowSubband], width, shift);
1314 requires an additional shift operation for each sample.
1315 On the other hand, doing the shift allows using a single-precision
1346 SCHAR shift;
1383 shift the samples up to the limit.
1408 else { /* if negative shift value */
1428 shift = fNorm(accu);
1429 sum = accu << (int)shift;
1433 shift += 2 * preShift;
1435 *nrgEst_e++ = frameExp - shift;
1437 *nrgEst_e++ = frameExp - shift + 1; /* +1 due to missing imag. part */
1468 SCHAR shift, sum_e;
1496 shift the samples up to the limit.
1549 shift = fNorm(sumAll);
1550 sum = sumAll << (int)shift;
1560 sum_e = input_e + 4 - shift; /* -4 to compensate right-shift */
1562 sum_e = input_e + 4 + 1 - shift; /* -4 to compensate right-shift; +1 due to missing imag. part */
1618 nrgEst_e += 1; /* shift by 1 bit to avoid overflow */
1622 nrgEst_e = 2; /* shift by 1 bit to avoid overflow */
1633 b_e = tmpNoise_e + 1; /* shift by 1 bit to avoid overflow */
1636 b_e = 2; /* shift by 1 bit to avoid overflow */
1742 int scale_change, /*!< Number of bits to shift adjusted samples */
1792 int shift = (int) (scale_change+1);
1793 shift = (shift>=0) ? fixMin(DFRACT_BITS-1,shift) : fixMax(-(DFRACT_BITS-1),shift);
1795 FIXP_DBL tmp1 = scaleValue( fMultDiv2(C1_CLDFB, sineLevel), -shift );
1821 int shift = (int) (scale_change+1);
1822 shift = (shift>=0) ? fixMin(DFRACT_BITS-1,shift) : fixMax(-(DFRACT_BITS-1),shift);
1824 FIXP_DBL tmp1 = (shift>=0) ? ( fMultDiv2(C1, sineLevel) >> shift )
1825 : ( fMultDiv2(C1, sineLevel) << (-shift) );
1942 int scale_change, /*!< Number of bits to shift adjusted samples */
1966 int shift;
1982 shift = fixMin(DFRACT_BITS-1,-filtBufferNoiseShift);
1984 shift = fixMin(DFRACT_BITS-1, filtBufferNoiseShift);
1998 smoothedNoise = (fMultDiv2(smooth_ratio,filtBufferNoise[k])>>shift) +
2002 smoothedNoise = (fMultDiv2(smooth_ratio,filtBufferNoise[k])<<shift) +