Lines Matching refs:fl
53 unsigned fl; in ec_laplace_encode() local
55 fl = 0; in ec_laplace_encode()
62 fl = fs; in ec_laplace_encode()
68 fl += fs+2*LAPLACE_MINP; in ec_laplace_encode()
76 ndi_max = (32768-fl+LAPLACE_MINP-1)>>LAPLACE_LOG_MINP; in ec_laplace_encode()
79 fl += (2*di+1+s)*LAPLACE_MINP; in ec_laplace_encode()
80 fs = IMIN(LAPLACE_MINP, 32768-fl); in ec_laplace_encode()
86 fl += fs&~s; in ec_laplace_encode()
88 celt_assert(fl+fs<=32768); in ec_laplace_encode()
91 ec_encode_bin(enc, fl, fl+fs, 15); in ec_laplace_encode()
97 unsigned fl; in ec_laplace_decode() local
100 fl = 0; in ec_laplace_decode()
104 fl = fs; in ec_laplace_decode()
107 while(fs > LAPLACE_MINP && fm >= fl+2*fs) in ec_laplace_decode()
110 fl += fs; in ec_laplace_decode()
119 di = (fm-fl)>>(LAPLACE_LOG_MINP+1); in ec_laplace_decode()
121 fl += 2*di*LAPLACE_MINP; in ec_laplace_decode()
123 if (fm < fl+fs) in ec_laplace_decode()
126 fl += fs; in ec_laplace_decode()
128 celt_assert(fl<32768); in ec_laplace_decode()
130 celt_assert(fl<=fm); in ec_laplace_decode()
131 celt_assert(fm<IMIN(fl+fs,32768)); in ec_laplace_decode()
132 ec_dec_update(dec, fl, IMIN(fl+fs,32768), 32768); in ec_laplace_decode()