Lines Matching refs:preShift
567 int preShift = 1 - CntLeadingZeros(maxVal); in apply_inter_tes() local
571 if (preShift != 0) preShift++; in apply_inter_tes()
573 subsample_power_low_sf[i] += (low_sf + preShift) * 2 + postShift + 1; in apply_inter_tes()
575 scaleValues(bufferReal, lowSubband, -preShift); in apply_inter_tes()
576 scaleValues(bufferImag, lowSubband, -preShift); in apply_inter_tes()
605 int preShift = 1 - CntLeadingZeros(maxVal); in apply_inter_tes() local
607 if (preShift != 0) preShift++; in apply_inter_tes()
610 subsample_power_high_sf[i] += (high_sf + preShift) * 2 + postShift + 1; in apply_inter_tes()
613 -preShift); in apply_inter_tes()
615 -preShift); in apply_inter_tes()
1998 SCHAR preShift; in calcNrgPerSubband() local
2043 preShift = CntLeadingZeros(maxVal) - 1; in calcNrgPerSubband()
2044 preShift -= SHIFT_BEFORE_SQUARE; in calcNrgPerSubband()
2050 preShift = fMin(preShift, (SCHAR)25); in calcNrgPerSubband()
2053 if (preShift >= 0) { in calcNrgPerSubband()
2057 FIXP_DBL temp1 = bufferReal[l] << (int)preShift; in calcNrgPerSubband()
2058 FIXP_DBL temp2 = bufferImag[l] << (int)preShift; in calcNrgPerSubband()
2064 FIXP_DBL temp = bufferReal[l] << (int)preShift; in calcNrgPerSubband()
2070 int negpreShift = -preShift; in calcNrgPerSubband()
2093 shift += 2 * preShift; in calcNrgPerSubband()
2127 SCHAR preShift; in calcNrgPerSfb() local
2149 preShift = CntLeadingZeros(maxVal) - 1; in calcNrgPerSfb()
2157 preShift -= SHIFT_BEFORE_SQUARE; in calcNrgPerSfb()
2165 if (preShift >= 0) { in calcNrgPerSfb()
2167 temp = analysBufferReal[l][k] << (int)preShift; in calcNrgPerSfb()
2169 temp = analysBufferImag[l][k] << (int)preShift; in calcNrgPerSfb()
2174 temp = analysBufferReal[l][k] >> -(int)preShift; in calcNrgPerSfb()
2176 temp = analysBufferImag[l][k] >> -(int)preShift; in calcNrgPerSfb()
2181 if (preShift >= 0) { in calcNrgPerSfb()
2183 temp = analysBufferReal[l][k] << (int)preShift; in calcNrgPerSfb()
2188 temp = analysBufferReal[l][k] >> -(int)preShift; in calcNrgPerSfb()
2218 sum_e -= 2 * preShift; in calcNrgPerSfb()