Lines Matching refs:nbSeq
2613 U32 const nbSeq = (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZSTD_seqToCodes() local
2616 assert(nbSeq <= seqStorePtr->maxNbSeq); in ZSTD_seqToCodes()
2617 for (u=0; u<nbSeq; u++) { in ZSTD_seqToCodes()
2678 const SeqStore_t* seqStorePtr, size_t nbSeq, in ZSTD_buildSequencesStatistics() argument
2699 assert(nbSeq != 0); /* ZSTD_selectEncodingType() divides by nbSeq */ in ZSTD_buildSequencesStatistics()
2702 …size_t const mostFrequent = HIST_countFast_wksp(countWorkspace, &max, llCodeTable, nbSeq, entropyW… in ZSTD_buildSequencesStatistics()
2706 countWorkspace, max, mostFrequent, nbSeq, in ZSTD_buildSequencesStatistics()
2715 countWorkspace, max, llCodeTable, nbSeq, in ZSTD_buildSequencesStatistics()
2733 … countWorkspace, &max, ofCodeTable, nbSeq, entropyWorkspace, entropyWkspSize); /* can't fail */ in ZSTD_buildSequencesStatistics()
2739 countWorkspace, max, mostFrequent, nbSeq, in ZSTD_buildSequencesStatistics()
2747 countWorkspace, max, ofCodeTable, nbSeq, in ZSTD_buildSequencesStatistics()
2765 … countWorkspace, &max, mlCodeTable, nbSeq, entropyWorkspace, entropyWkspSize); /* can't fail */ in ZSTD_buildSequencesStatistics()
2769 countWorkspace, max, mostFrequent, nbSeq, in ZSTD_buildSequencesStatistics()
2777 countWorkspace, max, mlCodeTable, nbSeq, in ZSTD_buildSequencesStatistics()
2818 const size_t nbSeq = (size_t)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZSTD_entropyCompressSeqStore_internal() local
2831 …DEBUGLOG(5, "ZSTD_entropyCompressSeqStore_internal (nbSeq=%zu, dstCapacity=%zu)", nbSeq, dstCapaci… in ZSTD_entropyCompressSeqStore_internal()
2856 if (nbSeq < 128) { in ZSTD_entropyCompressSeqStore_internal()
2857 *op++ = (BYTE)nbSeq; in ZSTD_entropyCompressSeqStore_internal()
2858 } else if (nbSeq < LONGNBSEQ) { in ZSTD_entropyCompressSeqStore_internal()
2859 op[0] = (BYTE)((nbSeq>>8) + 0x80); in ZSTD_entropyCompressSeqStore_internal()
2860 op[1] = (BYTE)nbSeq; in ZSTD_entropyCompressSeqStore_internal()
2864 MEM_writeLE16(op+1, (U16)(nbSeq - LONGNBSEQ)); in ZSTD_entropyCompressSeqStore_internal()
2868 if (nbSeq==0) { in ZSTD_entropyCompressSeqStore_internal()
2876 ZSTD_buildSequencesStatistics(seqStorePtr, nbSeq, in ZSTD_entropyCompressSeqStore_internal()
2893 sequences, nbSeq, in ZSTD_entropyCompressSeqStore_internal()
3682 size_t const nbSeq = (size_t)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZSTD_buildBlockEntropyStats_sequences() local
3691 DEBUGLOG(5, "ZSTD_buildBlockEntropyStats_sequences (nbSeq=%zu)", nbSeq); in ZSTD_buildBlockEntropyStats_sequences()
3692 stats = nbSeq != 0 ? ZSTD_buildSequencesStatistics(seqStorePtr, nbSeq, in ZSTD_buildBlockEntropyStats_sequences()
3772 const BYTE* codeTable, size_t nbSeq, unsigned maxCode, in ZSTD_estimateBlockSize_symbolType() argument
3781 const BYTE* const ctEnd = ctStart + nbSeq; in ZSTD_estimateBlockSize_symbolType()
3785 HIST_countFast_wksp(countWksp, &max, codeTable, nbSeq, workspace, wkspSize); /* can't fail */ in ZSTD_estimateBlockSize_symbolType()
3797 return nbSeq * 10; in ZSTD_estimateBlockSize_symbolType()
3812 size_t nbSeq, in ZSTD_estimateBlockSize_sequences() argument
3818 …ectionHeaderSize = 1 /* seqHead */ + 1 /* min seqSize size */ + (nbSeq >= 128) + (nbSeq >= LONGNBS… in ZSTD_estimateBlockSize_sequences()
3820 …cSeqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->ofType, ofCodeTable, nbSeq, Max… in ZSTD_estimateBlockSize_sequences()
3824 …cSeqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->llType, llCodeTable, nbSeq, Max… in ZSTD_estimateBlockSize_sequences()
3828 …cSeqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->mlType, mlCodeTable, nbSeq, Max… in ZSTD_estimateBlockSize_sequences()
3842 size_t nbSeq, in ZSTD_estimateBlockSize() argument
3852 nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateBlockSize()
3985 const SeqStore_t* const seqStore, U32 const nbSeq) in ZSTD_seqStore_resolveOffCodes() argument
3988 …ngLitLenIdx = seqStore->longLengthType == ZSTD_llt_literalLength ? seqStore->longLengthPos : nbSeq; in ZSTD_seqStore_resolveOffCodes()
3989 for (; idx < nbSeq; ++idx) { in ZSTD_seqStore_resolveOffCodes()
4153 static size_t ZSTD_deriveBlockSplits(ZSTD_CCtx* zc, U32 partitions[], U32 nbSeq) in ZSTD_deriveBlockSplits() argument
4158 if (nbSeq <= 4) { in ZSTD_deriveBlockSplits()
4159 DEBUGLOG(5, "ZSTD_deriveBlockSplits: Too few sequences to split (%u <= 4)", nbSeq); in ZSTD_deriveBlockSplits()
4163 ZSTD_deriveBlockSplitsHelper(&splits, 0, nbSeq, zc, &zc->seqStore); in ZSTD_deriveBlockSplits()
4164 splits.splitLocations[splits.idx] = nbSeq; in ZSTD_deriveBlockSplits()
4178 U32 lastBlock, U32 nbSeq) in ZSTD_compressBlock_splitBlock_internal() argument
4188 size_t const numSplits = ZSTD_deriveBlockSplits(zc, partitions, nbSeq); in ZSTD_compressBlock_splitBlock_internal()
4272 U32 nbSeq; in ZSTD_compressBlock_splitBlock() local
4288 nbSeq = (U32)(zc->seqStore.sequences - zc->seqStore.sequencesStart); in ZSTD_compressBlock_splitBlock()
4291 …ize = ZSTD_compressBlock_splitBlock_internal(zc, dst, dstCapacity, src, srcSize, lastBlock, nbSeq); in ZSTD_compressBlock_splitBlock()
4694 void ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq) in ZSTD_referenceExternalSequences() argument
4697 assert(nbSeq == 0 || cctx->appliedParams.ldmParams.enableLdm != ZSTD_ps_enable); in ZSTD_referenceExternalSequences()
4699 cctx->externSeqStore.size = nbSeq; in ZSTD_referenceExternalSequences()
4700 cctx->externSeqStore.capacity = nbSeq; in ZSTD_referenceExternalSequences()