Lines Matching refs:DB_SHIFT
153 return MIN32(200,SHR32(dist,2*DB_SHIFT-6));
192 oldE = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]);
196 qi = (f+QCONST32(.5f,DB_SHIFT+7))>>(DB_SHIFT+7);
197 decay_bound = EXTRACT16(MAX32(-QCONST16(28.f,DB_SHIFT),
203 decay_bound = MAX16(-QCONST16(28.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]) - max_decay;
209 qi += (int)SHR16(SUB16(decay_bound,x), DB_SHIFT);
246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT);
248 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT);
252 tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp);
285 max_decay = QCONST16(16.f,DB_SHIFT);
289 max_decay = MIN32(max_decay, SHL32(EXTEND32(nbAvailableBytes),DB_SHIFT-3));
295 max_decay = QCONST16(3.f,DB_SHIFT);
377 q2 = (error[i+c*m->nbEBands]+QCONST16(.5f,DB_SHIFT))>>(DB_SHIFT-fine_quant[i]);
387 offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.5f,DB_SHIFT));
416 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1);
480 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT);
482 oldEBands[i+c*m->nbEBands] = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]);
485 tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp);
507 offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.5f,DB_SHIFT));
533 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1);
557 bandLogE[i+c*m->nbEBands] += QCONST16(2.f, DB_SHIFT);
561 bandLogE[c*m->nbEBands+i] = -QCONST16(14.f,DB_SHIFT);