Lines Matching refs:rest
700 picoos_int16 * restdur /* in/out, rest in ms */
704 picoos_int32 fact, rest;
706 /* calculate rest and factor in number of frames (in PICODATA_PICODATA_PRECISION) */
707 rest = (*restdur) << (PICODATA_PRECISION - frame_duration_exp);
711 rest += fact * inout[i];
712 /* instead of rounding, we carry the rest to the next state */
713 inout[i] = rest >> PICODATA_PRECISION;
714 rest -= inout[i] << PICODATA_PRECISION;
716 (*restdur) = rest >> (PICODATA_PRECISION - frame_duration_exp);
726 picoos_int16 * restdur /* in/out, rest in ms */
730 picoos_int32 fact, rest, out, weighted_sum;
732 /* calculate rest and factor in number of frames (in PICODATA_PICODATA_PRECISION) */
733 rest = (*restdur) << (PICODATA_PRECISION - frame_duration_exp);
751 rest += fact * inout[i] * weight[i];
752 /* instead of rounding, we carry the rest to the next state */
753 out = inout[i] + (rest >> PICODATA_PRECISION);
757 rest -= ((out-inout[i]) << PICODATA_PRECISION);
760 (*restdur) = rest >> (PICODATA_PRECISION - frame_duration_exp);
776 picoos_int16 * dur_rest /* in/out, rest in ms */