Lines Matching refs:PICODATA_PRECISION
707 rest = (*restdur) << (PICODATA_PRECISION - frame_duration_exp);
708 fact = (targetdur << (PICODATA_PRECISION - frame_duration_exp)) / inputdur;
713 inout[i] = rest >> PICODATA_PRECISION;
714 rest -= inout[i] << PICODATA_PRECISION;
716 (*restdur) = rest >> (PICODATA_PRECISION - frame_duration_exp);
733 rest = (*restdur) << (PICODATA_PRECISION - frame_duration_exp);
742 /* get the additive change factor in PICODATA_PRECISION: */
744 fact = ((targetdur - inputdur) << (PICODATA_PRECISION-frame_duration_exp))/ weighted_sum;
746 fact = -((inputdur - targetdur) << (PICODATA_PRECISION-frame_duration_exp))/ weighted_sum;
749 /* input[i] * fact * weight[i] is the additive modification in PICODATA_PRECISION */
753 out = inout[i] + (rest >> PICODATA_PRECISION);
757 rest -= ((out-inout[i]) << PICODATA_PRECISION);
760 (*restdur) = rest >> (PICODATA_PRECISION - frame_duration_exp);
773 the factor is fixed-point with PICODATA_PRECISION PICODATA_PRECISION, i.e.
794 targetdur = (facttarget * inputdur + PICODATA_PREC_HALF) >> PICODATA_PRECISION;