Lines Matching refs:code
17 #define NORMALIZE if (range < kTopValue) { range <<= 8; code = (code << 8) | (*buf++); }
19 #define IF_BIT_0(p) ttt = *(p); NORMALIZE; bound = (range >> kNumBitModelTotalBits) * ttt; if (code < bound)
21 #define UPDATE_1(p) range -= bound; code -= bound; *(p) = (CLzmaProb)(ttt - (ttt >> kNumMoveBits));
47 #define NORMALIZE_CHECK if (range < kTopValue) { if (buf >= bufLimit) return DUMMY_ERROR; range <<= 8; code = (code << 8) | (*buf++); }
49 #define IF_BIT_0_CHECK(p) ttt = *(p); NORMALIZE_CHECK; bound = (range >> kNumBitModelTotalBits) * ttt; if (code < bound)
51 #define UPDATE_1_CHECK range -= bound; code -= bound;
151 UInt32 code = p->code;
330 code -= range;
331 t = (0 - ((UInt32)code >> 31)); /* (UInt32)((Int32)code >> 31) */
333 code += range & t;
337 if (code >= range)
339 code -= range;
415 p->code = code;
490 UInt32 code = p->code;
654 code -= range & (((code - range) >> 31) - 1);
655 /* if (code >= range) code -= range; */
680 p->code = ((UInt32)data[1] << 24) | ((UInt32)data[2] << 16) | ((UInt32)data[3] << 8) | ((UInt32)data[4]);
751 if (p->remainLen == 0 && p->code == 0)
835 if (p->code == 0)
837 return (p->code == 0) ? SZ_OK : SZ_ERROR_DATA;