Home
last modified time | relevance | path

Searched refs:EC_SYM_BITS (Results 1 – 3 of 3) sorted by relevance

/external/libopus/celt/
Dmfrngcod.h35 # define EC_SYM_BITS (8) macro
39 # define EC_SYM_MAX ((1U<<EC_SYM_BITS)-1)
41 # define EC_CODE_SHIFT (EC_CODE_BITS-EC_SYM_BITS-1)
45 # define EC_CODE_BOT (EC_CODE_TOP>>EC_SYM_BITS)
47 # define EC_CODE_EXTRA ((EC_CODE_BITS-2)%EC_SYM_BITS+1)
Dentenc.c86 carry=_c>>EC_SYM_BITS; in ec_enc_carry_out()
106 _this->val=(_this->val<<EC_SYM_BITS)&(EC_CODE_TOP-1); in ec_enc_normalize()
107 _this->rng<<=EC_SYM_BITS; in ec_enc_normalize()
108 _this->nbits_total+=EC_SYM_BITS; in ec_enc_normalize()
202 window>>=EC_SYM_BITS; in ec_enc_bits()
203 used-=EC_SYM_BITS; in ec_enc_bits()
205 while(used>=EC_SYM_BITS); in ec_enc_bits()
217 celt_assert(_nbits<=EC_SYM_BITS); in ec_enc_patch_initial_bits()
218 shift=EC_SYM_BITS-_nbits; in ec_enc_patch_initial_bits()
262 end=(end<<EC_SYM_BITS)&(EC_CODE_TOP-1); in ec_enc_done()
[all …]
Dentdec.c106 _this->nbits_total+=EC_SYM_BITS; in ec_dec_normalize()
107 _this->rng<<=EC_SYM_BITS; in ec_dec_normalize()
113 sym=(sym<<EC_SYM_BITS|_this->rem)>>(EC_SYM_BITS-EC_CODE_EXTRA); in ec_dec_normalize()
115 _this->val=((_this->val<<EC_SYM_BITS)+(EC_SYM_MAX&~sym))&(EC_CODE_TOP-1); in ec_dec_normalize()
129 -((EC_CODE_BITS-EC_CODE_EXTRA)/EC_SYM_BITS)*EC_SYM_BITS; in ec_dec_init()
133 _this->val=_this->rng-1-(_this->rem>>(EC_SYM_BITS-EC_CODE_EXTRA)); in ec_dec_init()
234 available+=EC_SYM_BITS; in ec_dec_bits()
236 while(available<=EC_WINDOW_SIZE-EC_SYM_BITS); in ec_dec_bits()