Lines Matching refs:seqState
942 ZSTD_decodeSequence(seqState_t* seqState, const ZSTD_longOffset_e longOffsets, const ZSTD_prefetch_… in ZSTD_decodeSequence() argument
945 ZSTD_seqSymbol const llDInfo = seqState->stateLL.table[seqState->stateLL.state]; in ZSTD_decodeSequence()
946 ZSTD_seqSymbol const mlDInfo = seqState->stateML.table[seqState->stateML.state]; in ZSTD_decodeSequence()
947 ZSTD_seqSymbol const ofDInfo = seqState->stateOffb.table[seqState->stateOffb.state]; in ZSTD_decodeSequence()
963 U32 const extraBits = ofBits - MIN(ofBits, 32 - seqState->DStream.bitsConsumed); in ZSTD_decodeSequence()
964 … offset = ofBase + (BIT_readBitsFast(&seqState->DStream, ofBits - extraBits) << extraBits); in ZSTD_decodeSequence()
965 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
966 if (extraBits) offset += BIT_readBitsFast(&seqState->DStream, extraBits); in ZSTD_decodeSequence()
969 …offset = ofBase + BIT_readBitsFast(&seqState->DStream, ofBits/*>0*/); /* <= (ZSTD_WINDOWLOG_MAX… in ZSTD_decodeSequence()
970 if (MEM_32bits()) BIT_reloadDStream(&seqState->DStream); 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; in ZSTD_decodeSequence()
979 offset = seqState->prevOffset[0]; in ZSTD_decodeSequence()
981 offset = seqState->prevOffset[1]; in ZSTD_decodeSequence()
982 seqState->prevOffset[1] = seqState->prevOffset[0]; in ZSTD_decodeSequence()
983 seqState->prevOffset[0] = offset; in ZSTD_decodeSequence()
986 offset = ofBase + ll0 + BIT_readBitsFast(&seqState->DStream, 1); in ZSTD_decodeSequence()
987 … { size_t temp = (offset==3) ? seqState->prevOffset[0] - 1 : seqState->prevOffset[offset]; in ZSTD_decodeSequence()
989 if (offset != 1) seqState->prevOffset[2] = seqState->prevOffset[1]; in ZSTD_decodeSequence()
990 seqState->prevOffset[1] = seqState->prevOffset[0]; in ZSTD_decodeSequence()
991 seqState->prevOffset[0] = offset = temp; in ZSTD_decodeSequence()
998 seq.matchLength += BIT_readBitsFast(&seqState->DStream, mlBits/*>0*/); in ZSTD_decodeSequence()
1001 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
1003 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
1009 seq.litLength += BIT_readBitsFast(&seqState->DStream, llBits/*>0*/); in ZSTD_decodeSequence()
1012 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
1018 size_t const pos = seqState->pos + seq.litLength; in ZSTD_decodeSequence()
1019 … const BYTE* const matchBase = (seq.offset > pos) ? seqState->dictEnd : seqState->prefixStart; in ZSTD_decodeSequence()
1022 seqState->pos = pos + seq.matchLength; in ZSTD_decodeSequence()
1039 ZSTD_updateFseState(&seqState->stateLL, &seqState->DStream); /* <= 9 bits */ in ZSTD_decodeSequence()
1040 ZSTD_updateFseState(&seqState->stateML, &seqState->DStream); /* <= 9 bits */ in ZSTD_decodeSequence()
1041 if (MEM_32bits()) BIT_reloadDStream(&seqState->DStream); /* <= 18 bits */ in ZSTD_decodeSequence()
1042 ZSTD_updateFseState(&seqState->stateOffb, &seqState->DStream); /* <= 8 bits */ in ZSTD_decodeSequence()
1044 … ZSTD_updateFseStateWithDInfo(&seqState->stateLL, &seqState->DStream, llDInfo); /* <= 9 bits */ in ZSTD_decodeSequence()
1045 … ZSTD_updateFseStateWithDInfo(&seqState->stateML, &seqState->DStream, mlDInfo); /* <= 9 bits */ in ZSTD_decodeSequence()
1046 if (MEM_32bits()) BIT_reloadDStream(&seqState->DStream); /* <= 18 bits */ in ZSTD_decodeSequence()
1047 … ZSTD_updateFseStateWithDInfo(&seqState->stateOffb, &seqState->DStream, ofDInfo); /* <= 8 bits */ in ZSTD_decodeSequence()
1124 seqState_t seqState; in ZSTD_decompressSequences_body() local
1127 { U32 i; for (i=0; i<ZSTD_REP_NUM; i++) seqState.prevOffset[i] = dctx->entropy.rep[i]; } in ZSTD_decompressSequences_body()
1129 ERR_isError(BIT_initDStream(&seqState.DStream, ip, iend-ip)), in ZSTD_decompressSequences_body()
1131 ZSTD_initFseState(&seqState.stateLL, &seqState.DStream, dctx->LLTptr); in ZSTD_decompressSequences_body()
1132 ZSTD_initFseState(&seqState.stateOffb, &seqState.DStream, dctx->OFTptr); in ZSTD_decompressSequences_body()
1133 ZSTD_initFseState(&seqState.stateML, &seqState.DStream, dctx->MLTptr); in ZSTD_decompressSequences_body()
1183 seq_t const sequence = ZSTD_decodeSequence(&seqState, isLongOffset, ZSTD_p_noPrefetch); in ZSTD_decompressSequences_body()
1190 BIT_reloadDStream(&(seqState.DStream)); in ZSTD_decompressSequences_body()
1206 …RETURN_ERROR_IF(BIT_reloadDStream(&seqState.DStream) < BIT_DStream_completed, corruption_detected,… in ZSTD_decompressSequences_body()
1208 … { U32 i; for (i=0; i<ZSTD_REP_NUM; i++) dctx->entropy.rep[i] = (U32)(seqState.prevOffset[i]); } in ZSTD_decompressSequences_body()
1262 seqState_t seqState; in ZSTD_decompressSequencesLong_body() local
1265 { int i; for (i=0; i<ZSTD_REP_NUM; i++) seqState.prevOffset[i] = dctx->entropy.rep[i]; } in ZSTD_decompressSequencesLong_body()
1266 seqState.prefixStart = prefixStart; in ZSTD_decompressSequencesLong_body()
1267 seqState.pos = (size_t)(op-prefixStart); in ZSTD_decompressSequencesLong_body()
1268 seqState.dictEnd = dictEnd; in ZSTD_decompressSequencesLong_body()
1272 ERR_isError(BIT_initDStream(&seqState.DStream, ip, iend-ip)), in ZSTD_decompressSequencesLong_body()
1274 ZSTD_initFseState(&seqState.stateLL, &seqState.DStream, dctx->LLTptr); in ZSTD_decompressSequencesLong_body()
1275 ZSTD_initFseState(&seqState.stateOffb, &seqState.DStream, dctx->OFTptr); in ZSTD_decompressSequencesLong_body()
1276 ZSTD_initFseState(&seqState.stateML, &seqState.DStream, dctx->MLTptr); in ZSTD_decompressSequencesLong_body()
1279 …for (seqNb=0; (BIT_reloadDStream(&seqState.DStream) <= BIT_DStream_completed) && (seqNb<seqAdvance… in ZSTD_decompressSequencesLong_body()
1280 sequences[seqNb] = ZSTD_decodeSequence(&seqState, isLongOffset, ZSTD_p_prefetch); in ZSTD_decompressSequencesLong_body()
1286 …for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && (seqNb<nbSeq) ; seqNb… in ZSTD_decompressSequencesLong_body()
1287 seq_t const sequence = ZSTD_decodeSequence(&seqState, isLongOffset, ZSTD_p_prefetch); in ZSTD_decompressSequencesLong_body()
1313 … { U32 i; for (i=0; i<ZSTD_REP_NUM; i++) dctx->entropy.rep[i] = (U32)(seqState.prevOffset[i]); } in ZSTD_decompressSequencesLong_body()