Lines Matching refs:shift
205 Word16 tmp, gain1, gain2, exp, Q_new, mu, shift, max;
302 shift = Q_MAX;
305 shift = norm_s(tmp) - 1;
306 if (shift < 0)
308 shift = 0;
310 if (shift > Q_MAX)
312 shift = Q_MAX;
315 Q_new = shift;
327 st->Q_max[0] = shift;
462 shift = norm_s(tmp) - 3;
463 if (shift > 0)
465 shift = 0; /* shift = 0..-3 */
472 Scale_sig_opt(wsp, L_FRAME / OPL_DECIM, shift);
474 Scale_sig(wsp, L_FRAME / OPL_DECIM, shift);
477 exp = exp + (shift - st->old_wsp_shift);
478 st->old_wsp_shift = shift;
832 Scale_sig_opt(xn, L_SUBFR, shift); /* scaling of xn[] to limit dynamic at 12 bits */
833 Scale_sig_opt(h1, L_SUBFR, 1 + shift); /* set h1[] in Q15 with scaling for convolution */
836 Scale_sig(xn, L_SUBFR, shift); /* scaling of xn[] to limit dynamic at 12 bits */
837 Scale_sig(h1, L_SUBFR, 1 + shift); /* set h1[] in Q15 with scaling for convolution */
1066 Scale_sig_opt(cn, L_SUBFR, shift); /* scaling of cn[] to limit dynamic at 12 bits */
1068 Scale_sig(cn, L_SUBFR, shift); /* scaling of cn[] to limit dynamic at 12 bits */
1170 index = Q_gain2(xn, y1, Q_new + shift, y2, code, g_coeff, L_SUBFR, 6,
1175 index = Q_gain2(xn, y1, Q_new + shift, y2, code, g_coeff, L_SUBFR, 7,
1193 Scale_sig_opt(exc2, L_SUBFR, shift);
1195 Scale_sig(exc2, L_SUBFR, shift);
1197 voice_fac = voice_factor(exc2, shift, gain_pit, code, gain_code, L_SUBFR);
1209 L_tmp = L_shl(L_tmp, (5 + shift));
1213 L_tmp = L_shl(L_tmp, (1 - shift));