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()
1996 SCHAR preShift; in calcNrgPerSubband() local
2041 preShift = CntLeadingZeros(maxVal) - 1; in calcNrgPerSubband()
2042 preShift -= SHIFT_BEFORE_SQUARE; in calcNrgPerSubband()
2048 preShift = fMin(preShift, (SCHAR)25); in calcNrgPerSubband()
2051 if (preShift >= 0) { in calcNrgPerSubband()
2055 FIXP_DBL temp1 = bufferReal[l] << (int)preShift; in calcNrgPerSubband()
2056 FIXP_DBL temp2 = bufferImag[l] << (int)preShift; in calcNrgPerSubband()
2062 FIXP_DBL temp = bufferReal[l] << (int)preShift; in calcNrgPerSubband()
2068 int negpreShift = -preShift; in calcNrgPerSubband()
2091 shift += 2 * preShift; in calcNrgPerSubband()
2125 SCHAR preShift; in calcNrgPerSfb() local
2147 preShift = CntLeadingZeros(maxVal) - 1; in calcNrgPerSfb()
2155 preShift -= SHIFT_BEFORE_SQUARE; in calcNrgPerSfb()
2163 if (preShift >= 0) { in calcNrgPerSfb()
2165 temp = analysBufferReal[l][k] << (int)preShift; in calcNrgPerSfb()
2167 temp = analysBufferImag[l][k] << (int)preShift; in calcNrgPerSfb()
2172 temp = analysBufferReal[l][k] >> -(int)preShift; in calcNrgPerSfb()
2174 temp = analysBufferImag[l][k] >> -(int)preShift; in calcNrgPerSfb()
2179 if (preShift >= 0) { in calcNrgPerSfb()
2181 temp = analysBufferReal[l][k] << (int)preShift; in calcNrgPerSfb()
2186 temp = analysBufferReal[l][k] >> -(int)preShift; in calcNrgPerSfb()
2216 sum_e -= 2 * preShift; in calcNrgPerSfb()