Lines Matching defs:range
18 #define NORMALIZE if (range < kTopValue) { range <<= 8; code = (code << 8) | (*buf++); }
20 #define IF_BIT_0(p) ttt = *(p); NORMALIZE; bound = (range >> kNumBitModelTotalBits) * ttt; if (code < bound)
21 #define UPDATE_0(p) range = bound; *(p) = (CLzmaProb)(ttt + ((kBitModelTotal - ttt) >> kNumMoveBits));
22 #define UPDATE_1(p) range -= bound; code -= bound; *(p) = (CLzmaProb)(ttt - (ttt >> kNumMoveBits));
48 #define NORMALIZE_CHECK if (range < kTopValue) { if (buf >= bufLimit) return DUMMY_ERROR; range <<= 8; code = (code << 8) | (*buf++); }
50 #define IF_BIT_0_CHECK(p) ttt = *(p); NORMALIZE_CHECK; bound = (range >> kNumBitModelTotalBits) * ttt; if (code < bound)
51 #define UPDATE_0_CHECK range = bound;
52 #define UPDATE_1_CHECK range -= bound; code -= bound;
157 UInt32 range = p->range;
334 range >>= 1;
338 code -= range;
341 code += range & t;
345 if (code >= range)
347 code -= range;
423 p->range = range;
498 UInt32 range = p->range;
662 range >>= 1;
663 code -= range & (((code - range) >> 31) - 1);
664 /* if (code >= range) code -= range; */
690 p->range = 0xFFFFFFFF;