shared const BIT_mask

This commit is contained in:
Yann Collet
2016-03-23 14:41:54 +01:00
parent 3c017867de
commit 6cf45dac81
2 changed files with 11 additions and 13 deletions
+2 -2
View File
@@ -655,8 +655,8 @@ static void ZSTD_decodeSequence(seq_t* seq, seqState_t* seqState, const U32 mls)
0x800000, 0x1000000, 0x2000000, 0x4000000, /*fake*/ 1, 1, 1, 1 };
/* sequence */
seq->litLength = LL_base[llCode] + BIT_getNBits(allBits, llBits, 0);
seq->matchLength = ML_base[mlCode] + BIT_getNBits(allBits, mlBits, llBits) + mls;
seq->litLength = LL_base[llCode] + BIT_getLowerBits(allBits, llBits);
seq->matchLength = ML_base[mlCode] + mls + BIT_getMiddleBits(allBits, mlBits, llBits);
{ size_t const offset = ofCode ? OF_base[ofCode] + BIT_getUpperBits(allBits, llBits+mlBits) :
llCode ? seq->offset : seqState->prevOffset;
if (ofCode | !llCode) seqState->prevOffset = seq->offset; /* cmove */