Lines Matching refs:cod_gain_frac
552 cod_gain_frac = optimum codebook gain (fraction) (Word16)
592 Word16 cod_gain_frac // i : optimum codebook gain (fraction), Q15
609 if (cod_gain_frac <= 0)
623 // make sure cod_gain_frac < frac_gcode0 for div_s
624 if (sub(cod_gain_frac, frac_gcode0) >= 0)
626 cod_gain_frac = shr (cod_gain_frac, 1);
632 // = cod_gain_frac/frac_gcode0 * 2^(cod_gain_exp-(exp_gcode0-14))
636 frac = div_s (cod_gain_frac, frac_gcode0);
698 Word16 cod_gain_frac, /* i : optimum codebook gain (fraction), Q15 */
722 if (cod_gain_frac <= 0)
736 /* make sure cod_gain_frac < frac_gcode0 for div_s */
737 if (cod_gain_frac >= frac_gcode0)
739 cod_gain_frac >>= 1;
746 = cod_gain_frac/frac_gcode0 * 2^(cod_gain_exp-(exp_gcode0-14))
750 frac = div_s(cod_gain_frac, frac_gcode0);