Lines Matching refs:seqState

931 static seq_t ZSTD_decodeSequence(seqState_t *seqState)  in ZSTD_decodeSequence()  argument
935 U32 const llCode = FSE_peekSymbol(&seqState->stateLL); in ZSTD_decodeSequence()
936 U32 const mlCode = FSE_peekSymbol(&seqState->stateML); in ZSTD_decodeSequence()
937 U32 const ofCode = FSE_peekSymbol(&seqState->stateOffb); /* <= maxOff, by table construction */ in ZSTD_decodeSequence()
961 …offset = OF_base[ofCode] + BIT_readBitsFast(&seqState->DStream, ofBits); /* <= (ZSTD_WINDOWLOG_MA… in ZSTD_decodeSequence()
963 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
969 size_t temp = (offset == 3) ? seqState->prevOffset[0] - 1 : seqState->prevOffset[offset]; in ZSTD_decodeSequence()
972 seqState->prevOffset[2] = seqState->prevOffset[1]; in ZSTD_decodeSequence()
973 seqState->prevOffset[1] = seqState->prevOffset[0]; in ZSTD_decodeSequence()
974 seqState->prevOffset[0] = offset = temp; in ZSTD_decodeSequence()
976 offset = seqState->prevOffset[0]; in ZSTD_decodeSequence()
979 seqState->prevOffset[2] = seqState->prevOffset[1]; in ZSTD_decodeSequence()
980 seqState->prevOffset[1] = seqState->prevOffset[0]; in ZSTD_decodeSequence()
981 seqState->prevOffset[0] = offset; in ZSTD_decodeSequence()
986 …seq.matchLength = ML_base[mlCode] + ((mlCode > 31) ? BIT_readBitsFast(&seqState->DStream, mlBits) … in ZSTD_decodeSequence()
988 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
990 …seq.litLength = LL_base[llCode] + ((llCode > 15) ? BIT_readBitsFast(&seqState->DStream, llBits) : … in ZSTD_decodeSequence()
992 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
995 FSE_updateState(&seqState->stateLL, &seqState->DStream); /* <= 9 bits */ in ZSTD_decodeSequence()
996 FSE_updateState(&seqState->stateML, &seqState->DStream); /* <= 9 bits */ in ZSTD_decodeSequence()
998 BIT_reloadDStream(&seqState->DStream); /* <= 18 bits */ in ZSTD_decodeSequence()
999 FSE_updateState(&seqState->stateOffb, &seqState->DStream); /* <= 8 bits */ in ZSTD_decodeSequence()
1117 seqState_t seqState; in ZSTD_decompressSequences() local
1122 seqState.prevOffset[i] = dctx->entropy.rep[i]; in ZSTD_decompressSequences()
1124 CHECK_E(BIT_initDStream(&seqState.DStream, ip, iend - ip), corruption_detected); in ZSTD_decompressSequences()
1125 FSE_initDState(&seqState.stateLL, &seqState.DStream, dctx->LLTptr); in ZSTD_decompressSequences()
1126 FSE_initDState(&seqState.stateOffb, &seqState.DStream, dctx->OFTptr); in ZSTD_decompressSequences()
1127 FSE_initDState(&seqState.stateML, &seqState.DStream, dctx->MLTptr); in ZSTD_decompressSequences()
1129 for (; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && nbSeq;) { in ZSTD_decompressSequences()
1132 seq_t const sequence = ZSTD_decodeSequence(&seqState); in ZSTD_decompressSequences()
1147 dctx->entropy.rep[i] = (U32)(seqState.prevOffset[i]); in ZSTD_decompressSequences()
1163 FORCE_INLINE seq_t ZSTD_decodeSequenceLong_generic(seqState_t *seqState, int const longOffsets) in ZSTD_decodeSequenceLong_generic() argument
1167 U32 const llCode = FSE_peekSymbol(&seqState->stateLL); in ZSTD_decodeSequenceLong_generic()
1168 U32 const mlCode = FSE_peekSymbol(&seqState->stateML); in ZSTD_decodeSequenceLong_generic()
1169 U32 const ofCode = FSE_peekSymbol(&seqState->stateOffb); /* <= maxOff, by table construction */ in ZSTD_decodeSequenceLong_generic()
1195 …offset = OF_base[ofCode] + (BIT_readBitsFast(&seqState->DStream, ofBits - extraBits) << extraBits); in ZSTD_decodeSequenceLong_generic()
1197 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequenceLong_generic()
1199 offset += BIT_readBitsFast(&seqState->DStream, extraBits); in ZSTD_decodeSequenceLong_generic()
1201 …offset = OF_base[ofCode] + BIT_readBitsFast(&seqState->DStream, ofBits); /* <= (ZSTD_WINDOWLOG_MA… in ZSTD_decodeSequenceLong_generic()
1203 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequenceLong_generic()
1210 size_t temp = (offset == 3) ? seqState->prevOffset[0] - 1 : seqState->prevOffset[offset]; in ZSTD_decodeSequenceLong_generic()
1213 seqState->prevOffset[2] = seqState->prevOffset[1]; in ZSTD_decodeSequenceLong_generic()
1214 seqState->prevOffset[1] = seqState->prevOffset[0]; in ZSTD_decodeSequenceLong_generic()
1215 seqState->prevOffset[0] = offset = temp; in ZSTD_decodeSequenceLong_generic()
1217 offset = seqState->prevOffset[0]; in ZSTD_decodeSequenceLong_generic()
1220 seqState->prevOffset[2] = seqState->prevOffset[1]; in ZSTD_decodeSequenceLong_generic()
1221 seqState->prevOffset[1] = seqState->prevOffset[0]; in ZSTD_decodeSequenceLong_generic()
1222 seqState->prevOffset[0] = offset; in ZSTD_decodeSequenceLong_generic()
1227 …seq.matchLength = ML_base[mlCode] + ((mlCode > 31) ? BIT_readBitsFast(&seqState->DStream, mlBits) … in ZSTD_decodeSequenceLong_generic()
1229 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequenceLong_generic()
1231 …seq.litLength = LL_base[llCode] + ((llCode > 15) ? BIT_readBitsFast(&seqState->DStream, llBits) : … in ZSTD_decodeSequenceLong_generic()
1233 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequenceLong_generic()
1236 size_t const pos = seqState->pos + seq.litLength; in ZSTD_decodeSequenceLong_generic()
1237 seq.match = seqState->base + pos - seq.offset; /* single memory segment */ in ZSTD_decodeSequenceLong_generic()
1239 seq.match += seqState->gotoDict; /* separate memory segment */ in ZSTD_decodeSequenceLong_generic()
1240 seqState->pos = pos + seq.matchLength; in ZSTD_decodeSequenceLong_generic()
1244 FSE_updateState(&seqState->stateLL, &seqState->DStream); /* <= 9 bits */ in ZSTD_decodeSequenceLong_generic()
1245 FSE_updateState(&seqState->stateML, &seqState->DStream); /* <= 9 bits */ in ZSTD_decodeSequenceLong_generic()
1247 BIT_reloadDStream(&seqState->DStream); /* <= 18 bits */ in ZSTD_decodeSequenceLong_generic()
1248 FSE_updateState(&seqState->stateOffb, &seqState->DStream); /* <= 8 bits */ in ZSTD_decodeSequenceLong_generic()
1253 static seq_t ZSTD_decodeSequenceLong(seqState_t *seqState, unsigned const windowSize) in ZSTD_decodeSequenceLong() argument
1256 return ZSTD_decodeSequenceLong_generic(seqState, 1); in ZSTD_decodeSequenceLong()
1258 return ZSTD_decodeSequenceLong_generic(seqState, 0); in ZSTD_decodeSequenceLong()
1378 seqState_t seqState; in ZSTD_decompressSequencesLong() local
1385 seqState.prevOffset[i] = dctx->entropy.rep[i]; in ZSTD_decompressSequencesLong()
1387 seqState.base = base; in ZSTD_decompressSequencesLong()
1388 seqState.pos = (size_t)(op - base); in ZSTD_decompressSequencesLong()
1389 seqState.gotoDict = (uPtrDiff)dictEnd - (uPtrDiff)base; /* cast to avoid undefined behaviour */ in ZSTD_decompressSequencesLong()
1390 CHECK_E(BIT_initDStream(&seqState.DStream, ip, iend - ip), corruption_detected); in ZSTD_decompressSequencesLong()
1391 FSE_initDState(&seqState.stateLL, &seqState.DStream, dctx->LLTptr); in ZSTD_decompressSequencesLong()
1392 FSE_initDState(&seqState.stateOffb, &seqState.DStream, dctx->OFTptr); in ZSTD_decompressSequencesLong()
1393 FSE_initDState(&seqState.stateML, &seqState.DStream, dctx->MLTptr); in ZSTD_decompressSequencesLong()
1396 …for (seqNb = 0; (BIT_reloadDStream(&seqState.DStream) <= BIT_DStream_completed) && seqNb < seqAdva… in ZSTD_decompressSequencesLong()
1397 sequences[seqNb] = ZSTD_decodeSequenceLong(&seqState, windowSize); in ZSTD_decompressSequencesLong()
1403 …for (; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && seqNb < nbSeq; seqNb++… in ZSTD_decompressSequencesLong()
1404 seq_t const sequence = ZSTD_decodeSequenceLong(&seqState, windowSize); in ZSTD_decompressSequencesLong()
1429 dctx->entropy.rep[i] = (U32)(seqState.prevOffset[i]); in ZSTD_decompressSequencesLong()