Lines Matching defs:shift
313 int shift = 28 - pv.exp;
315 if (shift < 31) {
316 if (shift > 0) {
317 *coef += (unsigned)((pv.mant + (1 << (shift - 1))) >> shift);
319 *coef += (unsigned)pv.mant << -shift;
374 int shift, round, c, tmp;
378 shift = (-gain-1024) >> 3;
382 shift = (gain-1024) >> 3;
385 if (shift < -31) {
387 } else if (shift < 0) {
388 shift = -shift;
389 round = 1 << (shift - 1);
395 dest[group * 128 + k] += (tmp + (int64_t)round) >> shift;
404 dest[group * 128 + k] += tmp * (1U << shift);
424 int i, c, shift, round, tmp;
431 shift = (gain-1024) >> 3;
432 if (shift < -31) {
434 } else if (shift < 0) {
435 shift = -shift;
436 round = 1 << (shift - 1);
440 dest[i] += (tmp + round) >> shift;
446 dest[i] += tmp * (1U << shift);