Lines Matching refs:rng
103 while(_this->rng<=EC_CODE_BOT){ in ec_enc_normalize()
107 _this->rng<<=EC_SYM_BITS; in ec_enc_normalize()
120 _this->rng=EC_CODE_TOP; in ec_enc_init()
130 r=celt_udiv(_this->rng,_ft); in ec_encode()
132 _this->val+=_this->rng-IMUL32(r,(_ft-_fl)); in ec_encode()
133 _this->rng=IMUL32(r,(_fh-_fl)); in ec_encode()
135 else _this->rng-=IMUL32(r,(_ft-_fh)); in ec_encode()
141 r=_this->rng>>_bits; in ec_encode_bin()
143 _this->val+=_this->rng-IMUL32(r,((1U<<_bits)-_fl)); in ec_encode_bin()
144 _this->rng=IMUL32(r,(_fh-_fl)); in ec_encode_bin()
146 else _this->rng-=IMUL32(r,((1U<<_bits)-_fh)); in ec_encode_bin()
155 r=_this->rng; in ec_enc_bit_logp()
160 _this->rng=_val?s:r; in ec_enc_bit_logp()
166 r=_this->rng>>_ftb; in ec_enc_icdf()
168 _this->val+=_this->rng-IMUL32(r,_icdf[_s-1]); in ec_enc_icdf()
169 _this->rng=IMUL32(r,_icdf[_s-1]-_icdf[_s]); in ec_enc_icdf()
171 else _this->rng-=IMUL32(r,_icdf[_s]); in ec_enc_icdf()
228 else if(_this->rng<=(EC_CODE_TOP>>_nbits)){ in ec_enc_patch_initial_bits()
252 l=EC_CODE_BITS-EC_ILOG(_this->rng); in ec_enc_done()
255 if((end|msk)>=_this->val+_this->rng){ in ec_enc_done()