Lines Matching refs:seqStore

213 const SeqStore_t* ZSTD_getSeqStore(const ZSTD_CCtx* ctx) { return &(ctx->seqStore); }  in ZSTD_getSeqStore()
2145 …zc->seqStore.sequencesStart = (SeqDef*)ZSTD_cwksp_reserve_aligned64(ws, maxNbSeq * sizeof(SeqDef)); in ZSTD_resetCCtx_internal()
2173 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()
2174 zc->seqStore.maxNbLit = blockSize; in ZSTD_resetCCtx_internal()
2194 zc->seqStore.maxNbSeq = maxNbSeq; in ZSTD_resetCCtx_internal()
2195 zc->seqStore.llCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
2196 zc->seqStore.mlCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
2197 zc->seqStore.ofCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
3151 static void ZSTD_validateSeqStore(const SeqStore_t* seqStore, const ZSTD_compressionParameters* cPa… in ZSTD_validateSeqStore() argument
3154 const SeqDef* seq = seqStore->sequencesStart; in ZSTD_validateSeqStore()
3155 const SeqDef* const seqEnd = seqStore->sequences; in ZSTD_validateSeqStore()
3158 const ZSTD_SequenceLength seqLength = ZSTD_getSequenceLength(seqStore, seq); in ZSTD_validateSeqStore()
3164 (void)seqStore; in ZSTD_validateSeqStore()
3195 ZSTD_resetSeqStore(&(zc->seqStore)); in ZSTD_buildSeqStore()
3235 ms, &zc->seqStore, in ZSTD_buildSeqStore()
3260 ms, &zc->seqStore, in ZSTD_buildSeqStore()
3326 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore()
3334 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore()
3337 ZSTD_storeLastLiterals(&zc->seqStore, lastLiterals, lastLLSize); in ZSTD_buildSeqStore()
3339 ZSTD_validateSeqStore(&zc->seqStore, &zc->appliedParams.cParams); in ZSTD_buildSeqStore()
3343 static size_t ZSTD_copyBlockSequences(SeqCollector* seqCollector, const SeqStore_t* seqStore, const… in ZSTD_copyBlockSequences() argument
3345 const SeqDef* inSeqs = seqStore->sequencesStart; in ZSTD_copyBlockSequences()
3346 const size_t nbInSequences = (size_t)(seqStore->sequences - inSeqs); in ZSTD_copyBlockSequences()
3347 const size_t nbInLiterals = (size_t)(seqStore->lit - seqStore->litStart); in ZSTD_copyBlockSequences()
3375 if (i == seqStore->longLengthPos) { in ZSTD_copyBlockSequences()
3376 if (seqStore->longLengthType == ZSTD_llt_literalLength) { in ZSTD_copyBlockSequences()
3378 } else if (seqStore->longLengthType == ZSTD_llt_matchLength) { in ZSTD_copyBlockSequences()
3512 static int ZSTD_maybeRLE(SeqStore_t const* seqStore) in ZSTD_maybeRLE() argument
3514 size_t const nbSeqs = (size_t)(seqStore->sequences - seqStore->sequencesStart); in ZSTD_maybeRLE()
3515 size_t const nbLits = (size_t)(seqStore->lit - seqStore->litStart); in ZSTD_maybeRLE()
3862 ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize(SeqStore_t* seqStore, ZSTD_CCtx* zc) in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize() argument
3866 FORWARD_IF_ERROR(ZSTD_buildBlockEntropyStats(seqStore, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3873 seqStore->litStart, (size_t)(seqStore->lit - seqStore->litStart), in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3874 seqStore->ofCode, seqStore->llCode, seqStore->mlCode, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3875 (size_t)(seqStore->sequences - seqStore->sequencesStart), in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3883 static size_t ZSTD_countSeqStoreLiteralsBytes(const SeqStore_t* const seqStore) in ZSTD_countSeqStoreLiteralsBytes() argument
3886 size_t const nbSeqs = (size_t)(seqStore->sequences - seqStore->sequencesStart); in ZSTD_countSeqStoreLiteralsBytes()
3889 SeqDef const seq = seqStore->sequencesStart[i]; in ZSTD_countSeqStoreLiteralsBytes()
3891 if (i == seqStore->longLengthPos && seqStore->longLengthType == ZSTD_llt_literalLength) { in ZSTD_countSeqStoreLiteralsBytes()
3898 static size_t ZSTD_countSeqStoreMatchBytes(const SeqStore_t* const seqStore) in ZSTD_countSeqStoreMatchBytes() argument
3901 size_t const nbSeqs = (size_t)(seqStore->sequences - seqStore->sequencesStart); in ZSTD_countSeqStoreMatchBytes()
3904 SeqDef seq = seqStore->sequencesStart[i]; in ZSTD_countSeqStoreMatchBytes()
3906 if (i == seqStore->longLengthPos && seqStore->longLengthType == ZSTD_llt_matchLength) { in ZSTD_countSeqStoreMatchBytes()
3985 const SeqStore_t* const seqStore, U32 const nbSeq) in ZSTD_seqStore_resolveOffCodes() argument
3988 …U32 const longLitLenIdx = seqStore->longLengthType == ZSTD_llt_literalLength ? seqStore->longLengt… in ZSTD_seqStore_resolveOffCodes()
3990 SeqDef* const seq = seqStore->sequencesStart + idx; in ZSTD_seqStore_resolveOffCodes()
4020 const SeqStore_t* const seqStore, in ZSTD_compressSeqStore_singleBlock() argument
4036 …ZSTD_seqStore_resolveOffCodes(dRep, cRep, seqStore, (U32)(seqStore->sequences - seqStore->sequence… in ZSTD_compressSeqStore_singleBlock()
4039 cSeqsSize = ZSTD_entropyCompressSeqStore(seqStore, in ZSTD_compressSeqStore_singleBlock()
4060 …FORWARD_IF_ERROR(ZSTD_copyBlockSequences(&zc->seqCollector, seqStore, dRepOriginal.rep), "copyBloc… in ZSTD_compressSeqStore_singleBlock()
4163 ZSTD_deriveBlockSplitsHelper(&splits, 0, nbSeq, zc, &zc->seqStore); in ZSTD_deriveBlockSplits()
4216 ZSTD_compressSeqStore_singleBlock(zc, &zc->seqStore, in ZSTD_compressBlock_splitBlock_internal()
4228 ZSTD_deriveSeqStoreChunk(currSeqStore, &zc->seqStore, 0, partitions[0]); in ZSTD_compressBlock_splitBlock_internal()
4241 ZSTD_deriveSeqStoreChunk(nextSeqStore, &zc->seqStore, partitions[i], partitions[i+1]); in ZSTD_compressBlock_splitBlock_internal()
4288 nbSeq = (U32)(zc->seqStore.sequences - zc->seqStore.sequencesStart); in ZSTD_compressBlock_splitBlock()
4329 cSize = ZSTD_entropyCompressSeqStore(&zc->seqStore, in ZSTD_compressBlock_internal()
4376 ZSTD_maybeRLE(&zc->seqStore) && in ZSTD_compressBlock_targetCBlockSize_body()
6481 RETURN_ERROR_IF(idx - seqPos->idx >= cctx->seqStore.maxNbSeq, externalSequences_invalid, in ZSTD_transferSequences_wBlockDelim()
6483 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offBase, matchLength); in ZSTD_transferSequences_wBlockDelim()
6515 ZSTD_storeLastLiterals(&cctx->seqStore, ip, inSeqs[idx].litLength); in ZSTD_transferSequences_wBlockDelim()
6635 RETURN_ERROR_IF(idx - seqPos->idx >= cctx->seqStore.maxNbSeq, externalSequences_invalid, in ZSTD_transferSequences_noDelim()
6637 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offBase, matchLength); in ZSTD_transferSequences_noDelim()
6654 ZSTD_storeLastLiterals(&cctx->seqStore, ip, lastLLSize); in ZSTD_transferSequences_noDelim()
6769 ZSTD_resetSeqStore(&cctx->seqStore); in ZSTD_compressSequences_internal()
6793 compressedSeqsSize = ZSTD_entropyCompressSeqStore(&cctx->seqStore, in ZSTD_compressSequences_internal()
6804 ZSTD_maybeRLE(&cctx->seqStore) && in ZSTD_compressSequences_internal()
7118 RETURN_ERROR_IF(nbSequences >= cctx->seqStore.maxNbSeq, externalSequences_invalid, in ZSTD_convertBlockSequences()
7130 …size_t const longl = convertSequences_noRepcodes(cctx->seqStore.sequencesStart, inSeqs, nbSequence… in ZSTD_convertBlockSequences()
7131 cctx->seqStore.sequences = cctx->seqStore.sequencesStart + nbSequences-1; in ZSTD_convertBlockSequences()
7134 assert(cctx->seqStore.longLengthType == ZSTD_llt_none); in ZSTD_convertBlockSequences()
7137 cctx->seqStore.longLengthType = ZSTD_llt_matchLength; in ZSTD_convertBlockSequences()
7138 cctx->seqStore.longLengthPos = (U32)(longl-1); in ZSTD_convertBlockSequences()
7142 cctx->seqStore.longLengthType = ZSTD_llt_literalLength; in ZSTD_convertBlockSequences()
7143 cctx->seqStore.longLengthPos = (U32)(longl-(nbSequences-1)-1); in ZSTD_convertBlockSequences()
7154 ZSTD_storeSeqOnly(&cctx->seqStore, litLength, offBase, matchLength); in ZSTD_convertBlockSequences()
7300 ZSTD_resetSeqStore(&cctx->seqStore); in ZSTD_compressSequencesAndLiterals_internal()
7320 &cctx->seqStore, in ZSTD_compressSequencesAndLiterals_internal()