Lines Matching refs:range
42 rc->range = 0xFFFFFFFFU;
105 rc->code -= cumFreq * rc->range;
106 rc->range *= freq;
108 while (rc->range < TOP && bytestream2_get_bytes_left(gb) > 0) {
111 rc->range <<= 8;
122 rc->range = rc->range / total_freq;
124 if (rc->range == 0)
127 *freq = rc->code / rc->range;
139 t = rc->range * (uint64_t)cumFreq / total_freq;
142 rc->range = rc->range * (uint64_t)(freq + cumFreq) / total_freq - (t + 1);
144 while (rc->range < TOP && bytestream2_get_bytes_left(gb) > 0) {
148 rc->range <<= 8;
156 if (rc->range == 0)
159 *freq = total_freq * (uint64_t)(rc->code - rc->code1) / rc->range;