Lines Matching refs:preShift
564 int preShift = 1 - CntLeadingZeros(maxVal); in apply_inter_tes() local
568 if (preShift != 0) preShift++; in apply_inter_tes()
570 subsample_power_low_sf[i] += (low_sf + preShift) * 2 + postShift + 1; in apply_inter_tes()
572 scaleValues(bufferReal, lowSubband, -preShift); in apply_inter_tes()
573 scaleValues(bufferImag, lowSubband, -preShift); in apply_inter_tes()
602 int preShift = 1 - CntLeadingZeros(maxVal); in apply_inter_tes() local
604 if (preShift != 0) preShift++; in apply_inter_tes()
607 subsample_power_high_sf[i] += (high_sf + preShift) * 2 + postShift + 1; in apply_inter_tes()
610 -preShift); in apply_inter_tes()
612 -preShift); in apply_inter_tes()
2000 SCHAR preShift; in calcNrgPerSubband() local
2045 preShift = CntLeadingZeros(maxVal) - 1; in calcNrgPerSubband()
2046 preShift -= SHIFT_BEFORE_SQUARE; in calcNrgPerSubband()
2052 preShift = fMin(preShift, (SCHAR)25); in calcNrgPerSubband()
2055 if (preShift >= 0) { in calcNrgPerSubband()
2059 FIXP_DBL temp1 = bufferReal[l] << (int)preShift; in calcNrgPerSubband()
2060 FIXP_DBL temp2 = bufferImag[l] << (int)preShift; in calcNrgPerSubband()
2066 FIXP_DBL temp = bufferReal[l] << (int)preShift; in calcNrgPerSubband()
2072 int negpreShift = -preShift; in calcNrgPerSubband()
2095 shift += 2 * preShift; in calcNrgPerSubband()
2129 SCHAR preShift; in calcNrgPerSfb() local
2151 preShift = CntLeadingZeros(maxVal) - 1; in calcNrgPerSfb()
2159 preShift -= SHIFT_BEFORE_SQUARE; in calcNrgPerSfb()
2167 if (preShift >= 0) { in calcNrgPerSfb()
2169 temp = analysBufferReal[l][k] << (int)preShift; in calcNrgPerSfb()
2171 temp = analysBufferImag[l][k] << (int)preShift; in calcNrgPerSfb()
2176 temp = analysBufferReal[l][k] >> -(int)preShift; in calcNrgPerSfb()
2178 temp = analysBufferImag[l][k] >> -(int)preShift; in calcNrgPerSfb()
2183 if (preShift >= 0) { in calcNrgPerSfb()
2185 temp = analysBufferReal[l][k] << (int)preShift; in calcNrgPerSfb()
2190 temp = analysBufferReal[l][k] >> -(int)preShift; in calcNrgPerSfb()
2220 sum_e -= 2 * preShift; in calcNrgPerSfb()