Lines Matching defs:shift
240 int shift, round;
287 shift = a00.exp;
288 if (shift >= 3)
290 else if (shift <= -30)
293 shift = 1-shift;
294 if (shift <= 0)
295 alpha0[k][0] = a00.mant * (1<<-shift);
297 round = 1 << (shift-1);
298 alpha0[k][0] = (a00.mant + round) >> shift;
302 shift = a01.exp;
303 if (shift >= 3)
305 else if (shift <= -30)
308 shift = 1-shift;
309 if (shift <= 0)
310 alpha0[k][1] = a01.mant * (1<<-shift);
312 round = 1 << (shift-1);
313 alpha0[k][1] = (a01.mant + round) >> shift;
316 shift = a10.exp;
317 if (shift >= 3)
319 else if (shift <= -30)
322 shift = 1-shift;
323 if (shift <= 0)
324 alpha1[k][0] = a10.mant * (1<<-shift);
326 round = 1 << (shift-1);
327 alpha1[k][0] = (a10.mant + round) >> shift;
331 shift = a11.exp;
332 if (shift >= 3)
334 else if (shift <= -30)
337 shift = 1-shift;
338 if (shift <= 0)
339 alpha1[k][1] = a11.mant * (1<<-shift);
341 round = 1 << (shift-1);
342 alpha1[k][1] = (a11.mant + round) >> shift;
346 shift = (int)(((int64_t)(alpha1[k][0]>>1) * (alpha1[k][0]>>1) + \
349 if (shift >= 0x20000000){
356 shift = (int)(((int64_t)(alpha0[k][0]>>1) * (alpha0[k][0]>>1) + \
359 if (shift >= 0x20000000){
570 int shift;
576 shift = 22 - in[m ].exp;
578 if (shift < 1 || shift2 < 1) {
579 av_log(NULL, AV_LOG_ERROR, "Overflow in sbr_hf_assemble, shift=%d,%d\n", shift, shift2);
582 if (shift < 32) {
583 round = 1 << (shift-1);
584 out[2*m ] += (int)(in[m ].mant * A + round) >> shift;
594 shift = 22 - in[m ].exp;
595 if (shift < 1) {
596 av_log(NULL, AV_LOG_ERROR, "Overflow in sbr_hf_assemble, shift=%d\n", shift);
598 } else if (shift < 32) {
599 round = 1 << (shift-1);
600 out[2*m ] += (int)(in[m ].mant * A + round) >> shift;