Lines Matching refs:pred
626 static void mclms_update(WmallDecodeCtx *s, int icoef, int *pred)
634 pred_error = s->channel_residues[ich][icoef] - (unsigned)pred[ich];
668 static void mclms_predict(WmallDecodeCtx *s, int icoef, int *pred)
675 pred[ich] = 0;
679 pred[ich] += (uint32_t)s->mclms_prevvalues[i + s->mclms_recent] *
682 pred[ich] += (uint32_t)s->channel_residues[i][icoef] *
684 pred[ich] += (1U << s->mclms_scaling) >> 1;
685 pred[ich] >>= s->mclms_scaling;
686 s->channel_residues[ich][icoef] += (unsigned)pred[ich];
692 int icoef, pred[WMALL_MAX_CHANNELS] = { 0 };
694 mclms_predict(s, icoef, pred);
695 mclms_update(s, icoef, pred);
767 unsigned pred;\
773 pred = (1 << s->cdlms[ch][ilms].scaling) >> 1; \
775 pred += s->dsp.scalarproduct_and_madd_int## bits (s->cdlms[ch][ilms].coefs, \
781 input = residue + (unsigned)((int)pred >> s->cdlms[ch][ilms].scaling); \
807 int ich, pred, i, j;
815 pred = 0;
818 pred += (uint32_t)filter_coeffs[j] * prevvalues[j - i];
820 pred += (uint32_t)s->channel_residues[ich][i - j - 1] * filter_coeffs[j];
822 pred >>= scaling;
823 s->channel_residues[ich][i] += (unsigned)pred;
826 pred = 0;
828 pred += (uint32_t)s->channel_residues[ich][i - j - 1] * filter_coeffs[j];
829 pred >>= scaling;
830 s->channel_residues[ich][i] += (unsigned)pred;