Lines Matching refs:seqStore

208 const seqStore_t* ZSTD_getSeqStore(const ZSTD_CCtx* ctx) { return &(ctx->seqStore); }  in ZSTD_getSeqStore()
1860 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()
1861 zc->seqStore.maxNbLit = blockSize; in ZSTD_resetCCtx_internal()
1882 zc->seqStore.maxNbSeq = maxNbSeq; in ZSTD_resetCCtx_internal()
1883 zc->seqStore.llCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
1884 zc->seqStore.mlCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
1885 zc->seqStore.ofCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
1886 … zc->seqStore.sequencesStart = (seqDef*)ZSTD_cwksp_reserve_aligned(ws, maxNbSeq * sizeof(seqDef)); in ZSTD_resetCCtx_internal()
2738 ZSTD_resetSeqStore(&(zc->seqStore)); in ZSTD_buildSeqStore()
2769 ms, &zc->seqStore, in ZSTD_buildSeqStore()
2786 ms, &zc->seqStore, in ZSTD_buildSeqStore()
2796 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore()
2799 ZSTD_storeLastLiterals(&zc->seqStore, lastLiterals, lastLLSize); in ZSTD_buildSeqStore()
2806 const seqStore_t* seqStore = ZSTD_getSeqStore(zc); in ZSTD_copyBlockSequences() local
2807 const seqDef* seqStoreSeqs = seqStore->sequencesStart; in ZSTD_copyBlockSequences()
2808 size_t seqStoreSeqSize = seqStore->sequences - seqStoreSeqs; in ZSTD_copyBlockSequences()
2809 size_t seqStoreLiteralsSize = (size_t)(seqStore->lit - seqStore->litStart); in ZSTD_copyBlockSequences()
2827 if (i == seqStore->longLengthPos) { in ZSTD_copyBlockSequences()
2828 if (seqStore->longLengthType == ZSTD_llt_literalLength) { in ZSTD_copyBlockSequences()
2830 } else if (seqStore->longLengthType == ZSTD_llt_matchLength) { in ZSTD_copyBlockSequences()
2933 static int ZSTD_maybeRLE(seqStore_t const* seqStore) in ZSTD_maybeRLE() argument
2935 size_t const nbSeqs = (size_t)(seqStore->sequences - seqStore->sequencesStart); in ZSTD_maybeRLE()
2936 size_t const nbLits = (size_t)(seqStore->lit - seqStore->litStart); in ZSTD_maybeRLE()
3259 static size_t ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize(seqStore_t* seqStore, ZSTD_CCtx* z… in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize() argument
3262 FORWARD_IF_ERROR(ZSTD_buildBlockEntropyStats(seqStore, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3268 return ZSTD_estimateBlockSize(seqStore->litStart, (size_t)(seqStore->lit - seqStore->litStart), in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3269 seqStore->ofCode, seqStore->llCode, seqStore->mlCode, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3270 (size_t)(seqStore->sequences - seqStore->sequencesStart), in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3276 static size_t ZSTD_countSeqStoreLiteralsBytes(const seqStore_t* const seqStore) { in ZSTD_countSeqStoreLiteralsBytes() argument
3278 size_t const nbSeqs = seqStore->sequences - seqStore->sequencesStart; in ZSTD_countSeqStoreLiteralsBytes()
3281 seqDef seq = seqStore->sequencesStart[i]; in ZSTD_countSeqStoreLiteralsBytes()
3283 if (i == seqStore->longLengthPos && seqStore->longLengthType == ZSTD_llt_literalLength) { in ZSTD_countSeqStoreLiteralsBytes()
3291 static size_t ZSTD_countSeqStoreMatchBytes(const seqStore_t* const seqStore) { in ZSTD_countSeqStoreMatchBytes() argument
3293 size_t const nbSeqs = seqStore->sequences - seqStore->sequencesStart; in ZSTD_countSeqStoreMatchBytes()
3296 seqDef seq = seqStore->sequencesStart[i]; in ZSTD_countSeqStoreMatchBytes()
3298 if (i == seqStore->longLengthPos && seqStore->longLengthType == ZSTD_llt_matchLength) { in ZSTD_countSeqStoreMatchBytes()
3375 seqStore_t* const seqStore, U32 const nbSeq) { in ZSTD_seqStore_resolveOffCodes() argument
3378 seqDef* const seq = seqStore->sequencesStart + idx; in ZSTD_seqStore_resolveOffCodes()
3407 ZSTD_compressSeqStore_singleBlock(ZSTD_CCtx* zc, seqStore_t* const seqStore, in ZSTD_compressSeqStore_singleBlock() argument
3423 …ZSTD_seqStore_resolveOffCodes(dRep, cRep, seqStore, (U32)(seqStore->sequences - seqStore->sequence… in ZSTD_compressSeqStore_singleBlock()
3426 cSeqsSize = ZSTD_entropyCompressSeqStore(seqStore, in ZSTD_compressSeqStore_singleBlock()
3541 ZSTD_deriveBlockSplitsHelper(&splits, 0, nbSeq, zc, &zc->seqStore); in ZSTD_deriveBlockSplits()
3591 size_t cSizeSingleBlock = ZSTD_compressSeqStore_singleBlock(zc, &zc->seqStore, in ZSTD_compressBlock_splitBlock_internal()
3602 ZSTD_deriveSeqStoreChunk(currSeqStore, &zc->seqStore, 0, partitions[0]); in ZSTD_compressBlock_splitBlock_internal()
3616 ZSTD_deriveSeqStoreChunk(nextSeqStore, &zc->seqStore, partitions[i], partitions[i+1]); in ZSTD_compressBlock_splitBlock_internal()
3663 nbSeq = (U32)(zc->seqStore.sequences - zc->seqStore.sequencesStart); in ZSTD_compressBlock_splitBlock()
3700 cSize = ZSTD_entropyCompressSeqStore(&zc->seqStore, in ZSTD_compressBlock_internal()
3747 ZSTD_maybeRLE(&zc->seqStore) && in ZSTD_compressBlock_targetCBlockSize_body()
5634 RETURN_ERROR_IF(idx - seqPos->idx > cctx->seqStore.maxNbSeq, memory_allocation, in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
5636 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offCode, matchLength); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
5643 ZSTD_storeLastLiterals(&cctx->seqStore, ip, inSeqs[idx].litLength); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
5758 RETURN_ERROR_IF(idx - seqPos->idx > cctx->seqStore.maxNbSeq, memory_allocation, in ZSTD_copySequencesToSeqStoreNoBlockDelim()
5760 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offCode, matchLength); in ZSTD_copySequencesToSeqStoreNoBlockDelim()
5775 ZSTD_storeLastLiterals(&cctx->seqStore, ip, lastLLSize); in ZSTD_copySequencesToSeqStoreNoBlockDelim()
5836 ZSTD_resetSeqStore(&cctx->seqStore); in ZSTD_compressSequences_internal()
5856 compressedSeqsSize = ZSTD_entropyCompressSeqStore(&cctx->seqStore, in ZSTD_compressSequences_internal()
5867 ZSTD_maybeRLE(&cctx->seqStore) && in ZSTD_compressSequences_internal()