Lines Matching refs:nbSeq

2303     U32 const nbSeq = (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart);  in ZSTD_seqToCodes()  local
2305 assert(nbSeq <= seqStorePtr->maxNbSeq); in ZSTD_seqToCodes()
2306 for (u=0; u<nbSeq; u++) { in ZSTD_seqToCodes()
2360 ZSTD_buildSequencesStatistics(seqStore_t* seqStorePtr, size_t nbSeq, in ZSTD_buildSequencesStatistics() argument
2380 assert(nbSeq != 0); /* ZSTD_selectEncodingType() divides by nbSeq */ in ZSTD_buildSequencesStatistics()
2383 …size_t const mostFrequent = HIST_countFast_wksp(countWorkspace, &max, llCodeTable, nbSeq, entropyW… in ZSTD_buildSequencesStatistics()
2387 countWorkspace, max, mostFrequent, nbSeq, in ZSTD_buildSequencesStatistics()
2396 countWorkspace, max, llCodeTable, nbSeq, in ZSTD_buildSequencesStatistics()
2414 … countWorkspace, &max, ofCodeTable, nbSeq, entropyWorkspace, entropyWkspSize); /* can't fail */ in ZSTD_buildSequencesStatistics()
2420 countWorkspace, max, mostFrequent, nbSeq, in ZSTD_buildSequencesStatistics()
2428 countWorkspace, max, ofCodeTable, nbSeq, in ZSTD_buildSequencesStatistics()
2446 … countWorkspace, &max, mlCodeTable, nbSeq, entropyWorkspace, entropyWkspSize); /* can't fail */ in ZSTD_buildSequencesStatistics()
2450 countWorkspace, max, mostFrequent, nbSeq, in ZSTD_buildSequencesStatistics()
2458 countWorkspace, max, mlCodeTable, nbSeq, in ZSTD_buildSequencesStatistics()
2498 const size_t nbSeq = seqStorePtr->sequences - seqStorePtr->sequencesStart; in ZSTD_entropyCompressSeqStore_internal() local
2510 DEBUGLOG(4, "ZSTD_entropyCompressSeqStore_internal (nbSeq=%zu)", nbSeq); in ZSTD_entropyCompressSeqStore_internal()
2537 if (nbSeq < 128) { in ZSTD_entropyCompressSeqStore_internal()
2538 *op++ = (BYTE)nbSeq; in ZSTD_entropyCompressSeqStore_internal()
2539 } else if (nbSeq < LONGNBSEQ) { in ZSTD_entropyCompressSeqStore_internal()
2540 op[0] = (BYTE)((nbSeq>>8) + 0x80); in ZSTD_entropyCompressSeqStore_internal()
2541 op[1] = (BYTE)nbSeq; in ZSTD_entropyCompressSeqStore_internal()
2545 MEM_writeLE16(op+1, (U16)(nbSeq - LONGNBSEQ)); in ZSTD_entropyCompressSeqStore_internal()
2549 if (nbSeq==0) { in ZSTD_entropyCompressSeqStore_internal()
2558 stats = ZSTD_buildSequencesStatistics(seqStorePtr, nbSeq, in ZSTD_entropyCompressSeqStore_internal()
2574 sequences, nbSeq, in ZSTD_entropyCompressSeqStore_internal()
3090 size_t const nbSeq = seqStorePtr->sequences - seqStorePtr->sequencesStart; in ZSTD_buildBlockEntropyStats_sequences() local
3099 DEBUGLOG(5, "ZSTD_buildBlockEntropyStats_sequences (nbSeq=%zu)", nbSeq); in ZSTD_buildBlockEntropyStats_sequences()
3100 stats = nbSeq != 0 ? ZSTD_buildSequencesStatistics(seqStorePtr, nbSeq, in ZSTD_buildBlockEntropyStats_sequences()
3173 const BYTE* codeTable, size_t nbSeq, unsigned maxCode, in ZSTD_estimateBlockSize_symbolType() argument
3182 const BYTE* const ctEnd = ctStart + nbSeq; in ZSTD_estimateBlockSize_symbolType()
3186 HIST_countFast_wksp(countWksp, &max, codeTable, nbSeq, workspace, wkspSize); /* can't fail */ in ZSTD_estimateBlockSize_symbolType()
3198 return nbSeq * 10; in ZSTD_estimateBlockSize_symbolType()
3212 size_t nbSeq, in ZSTD_estimateBlockSize_sequences() argument
3218 …ectionHeaderSize = 1 /* seqHead */ + 1 /* min seqSize size */ + (nbSeq >= 128) + (nbSeq >= LONGNBS… in ZSTD_estimateBlockSize_sequences()
3220 …cSeqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->ofType, ofCodeTable, nbSeq, Max… in ZSTD_estimateBlockSize_sequences()
3224 …cSeqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->llType, llCodeTable, nbSeq, Max… in ZSTD_estimateBlockSize_sequences()
3228 …cSeqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->mlType, mlCodeTable, nbSeq, Max… in ZSTD_estimateBlockSize_sequences()
3241 size_t nbSeq, in ZSTD_estimateBlockSize() argument
3250nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateBlockSize()
3375 seqStore_t* const seqStore, U32 const nbSeq) { in ZSTD_seqStore_resolveOffCodes() argument
3377 for (; idx < nbSeq; ++idx) { in ZSTD_seqStore_resolveOffCodes()
3534 static size_t ZSTD_deriveBlockSplits(ZSTD_CCtx* zc, U32 partitions[], U32 nbSeq) { in ZSTD_deriveBlockSplits() argument
3536 if (nbSeq <= 4) { in ZSTD_deriveBlockSplits()
3541 ZSTD_deriveBlockSplitsHelper(&splits, 0, nbSeq, zc, &zc->seqStore); in ZSTD_deriveBlockSplits()
3542 splits.splitLocations[splits.idx] = nbSeq; in ZSTD_deriveBlockSplits()
3554 const void* src, size_t blockSize, U32 lastBlock, U32 nbSeq) in ZSTD_compressBlock_splitBlock_internal() argument
3564 size_t numSplits = ZSTD_deriveBlockSplits(zc, partitions, nbSeq); in ZSTD_compressBlock_splitBlock_internal()
3648 U32 nbSeq; in ZSTD_compressBlock_splitBlock() local
3663 nbSeq = (U32)(zc->seqStore.sequences - zc->seqStore.sequencesStart); in ZSTD_compressBlock_splitBlock()
3666 …ize = ZSTD_compressBlock_splitBlock_internal(zc, dst, dstCapacity, src, srcSize, lastBlock, nbSeq); in ZSTD_compressBlock_splitBlock()
4004 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq) in ZSTD_referenceExternalSequences() argument
4012 cctx->externSeqStore.size = nbSeq; in ZSTD_referenceExternalSequences()
4013 cctx->externSeqStore.capacity = nbSeq; in ZSTD_referenceExternalSequences()