Lines Matching defs:code
24 #define NORMALIZE if (range < kTopValue) { range <<= 8; code = (code << 8) | (*buf++); }
26 #define IF_BIT_0(p) ttt = *(p); NORMALIZE; bound = (range >> kNumBitModelTotalBits) * ttt; if (code < bound)
28 #define UPDATE_1(p) range -= bound; code -= bound; *(p) = (CLzmaProb)(ttt - (ttt >> kNumMoveBits));
54 #define NORMALIZE_CHECK if (range < kTopValue) { if (buf >= bufLimit) return DUMMY_ERROR; range <<= 8; code = (code << 8) | (*buf++); }
56 #define IF_BIT_0_CHECK(p) ttt = *(p); NORMALIZE_CHECK; bound = (range >> kNumBitModelTotalBits) * ttt; if (code < bound)
58 #define UPDATE_1_CHECK range -= bound; code -= bound;
168 UInt32 code = p->code;
348 code -= range;
349 t = (0 - ((UInt32)code >> 31)); /* (UInt32)((Int32)code >> 31) */
351 code += range & t;
355 if (code >= range)
357 code -= range;
434 p->code = code;
509 UInt32 code = p->code;
673 code -= range & (((code - range) >> 31) - 1);
674 /* if (code >= range) code -= range; */
699 p->code = ((UInt32)data[1] << 24) | ((UInt32)data[2] << 16) | ((UInt32)data[3] << 8) | ((UInt32)data[4]);
770 if (p->remainLen == 0 && p->code == 0)
856 if (p->code == 0)
858 return (p->code == 0) ? SZ_OK : SZ_ERROR_DATA;