Home
last modified time | relevance | path

Searched refs:nbSeq (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/lib/zstd/compress/
Dzstd_compress_sequences.c57 static unsigned ZSTD_useLowProbCount(size_t const nbSeq) in ZSTD_useLowProbCount() argument
63 return nbSeq >= 2048; in ZSTD_useLowProbCount()
71 size_t const nbSeq, unsigned const FSELog) in ZSTD_NCountCost() argument
75 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_NCountCost()
76 …RWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)),… in ZSTD_NCountCost()
157 size_t const mostFrequent, size_t nbSeq, unsigned const FSELog, in ZSTD_selectEncodingType() argument
164 if (mostFrequent == nbSeq) { in ZSTD_selectEncodingType()
166 if (isDefaultAllowed && nbSeq <= 2) { in ZSTD_selectEncodingType()
186 && (nbSeq < staticFse_nbSeq_max) ) { in ZSTD_selectEncodingType()
190 if ( (nbSeq < dynamicFse_nbSeq_min) in ZSTD_selectEncodingType()
[all …]
Dzstd_compress_superblock.c185 size_t const nbSeq = seqStorePtr->sequences - seqStorePtr->sequencesStart; in ZSTD_buildSuperBlockEntropy_sequences() local
191 DEBUGLOG(5, "ZSTD_buildSuperBlockEntropy_sequences (nbSeq=%zu)", nbSeq); in ZSTD_buildSuperBlockEntropy_sequences()
200 …size_t const mostFrequent = HIST_countFast_wksp(countWksp, &max, llCodeTable, nbSeq, workspace, wk… in ZSTD_buildSuperBlockEntropy_sequences()
204 countWksp, max, mostFrequent, nbSeq, in ZSTD_buildSuperBlockEntropy_sequences()
211 … countWksp, max, llCodeTable, nbSeq, LL_defaultNorm, LL_defaultNormLog, MaxLL, in ZSTD_buildSuperBlockEntropy_sequences()
223 …size_t const mostFrequent = HIST_countFast_wksp(countWksp, &max, ofCodeTable, nbSeq, workspace, wk… in ZSTD_buildSuperBlockEntropy_sequences()
229 countWksp, max, mostFrequent, nbSeq, in ZSTD_buildSuperBlockEntropy_sequences()
235 … countWksp, max, ofCodeTable, nbSeq, OF_defaultNorm, OF_defaultNormLog, DefaultMaxOff, in ZSTD_buildSuperBlockEntropy_sequences()
247 …size_t const mostFrequent = HIST_countFast_wksp(countWksp, &max, mlCodeTable, nbSeq, workspace, wk… in ZSTD_buildSuperBlockEntropy_sequences()
251 countWksp, max, mostFrequent, nbSeq, in ZSTD_buildSuperBlockEntropy_sequences()
[all …]
Dzstd_compress_sequences.h25 size_t const mostFrequent, size_t nbSeq, unsigned const FSELog,
35 const BYTE* codeTable, size_t nbSeq,
45 seqDef const* sequences, size_t nbSeq, int longOffsets, int bmi2);
Dzstd_compress.c2070 U32 const nbSeq = (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZSTD_seqToCodes() local
2072 assert(nbSeq <= seqStorePtr->maxNbSeq); in ZSTD_seqToCodes()
2073 for (u=0; u<nbSeq; u++) { in ZSTD_seqToCodes()
2121 size_t const nbSeq = (size_t)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZSTD_entropyCompressSequences_internal() local
2128 DEBUGLOG(4, "ZSTD_entropyCompressSequences_internal (nbSeq=%zu)", nbSeq); in ZSTD_entropyCompressSequences_internal()
2151 if (nbSeq < 128) { in ZSTD_entropyCompressSequences_internal()
2152 *op++ = (BYTE)nbSeq; in ZSTD_entropyCompressSequences_internal()
2153 } else if (nbSeq < LONGNBSEQ) { in ZSTD_entropyCompressSequences_internal()
2154 op[0] = (BYTE)((nbSeq>>8) + 0x80); in ZSTD_entropyCompressSequences_internal()
2155 op[1] = (BYTE)nbSeq; in ZSTD_entropyCompressSequences_internal()
[all …]
Dzstd_compress_internal.h1177 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
/linux-6.1.9/lib/zstd/decompress/
Dzstd_decompress_block.c534 int ddictIsCold, int nbSeq, U32* wksp, size_t wkspSize, in ZSTD_buildSeqTable() argument
555 if (ddictIsCold && (nbSeq > 24 /* heuristic */)) { in ZSTD_buildSeqTable()
583 int nbSeq; in ZSTD_decodeSeqHeaders() local
590 nbSeq = *ip++; in ZSTD_decodeSeqHeaders()
591 if (!nbSeq) { in ZSTD_decodeSeqHeaders()
596 if (nbSeq > 0x7F) { in ZSTD_decodeSeqHeaders()
597 if (nbSeq == 0xFF) { in ZSTD_decodeSeqHeaders()
599 nbSeq = MEM_readLE16(ip) + LONGNBSEQ; in ZSTD_decodeSeqHeaders()
603 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTD_decodeSeqHeaders()
606 *nbSeqPtr = nbSeq; in ZSTD_decodeSeqHeaders()
[all …]