Home
last modified time | relevance | path

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

/linux-6.12.1/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()
159 size_t const mostFrequent, size_t nbSeq, unsigned const FSELog, in ZSTD_selectEncodingType() argument
166 if (mostFrequent == nbSeq) { in ZSTD_selectEncodingType()
168 if (isDefaultAllowed && nbSeq <= 2) { in ZSTD_selectEncodingType()
188 && (nbSeq < staticFse_nbSeq_max) ) { in ZSTD_selectEncodingType()
192 if ( (nbSeq < dynamicFse_nbSeq_min) in ZSTD_selectEncodingType()
[all …]
Dzstd_compress_superblock.c129 …ompressedSize(seqStore_t const* seqStore, const seqDef* sequences, size_t nbSeq, size_t litSize, i… in ZSTD_seqDecompressedSize() argument
131 const seqDef* const send = sequences + nbSeq; in ZSTD_seqDecompressedSize()
161 const seqDef* sequences, size_t nbSeq, in ZSTD_compressSubBlock_sequences() argument
173 …compressSubBlock_sequences (nbSeq=%zu, writeEntropy=%d, longOffsets=%d)", nbSeq, writeEntropy, lon… in ZSTD_compressSubBlock_sequences()
179 if (nbSeq < 0x7F) in ZSTD_compressSubBlock_sequences()
180 *op++ = (BYTE)nbSeq; in ZSTD_compressSubBlock_sequences()
181 else if (nbSeq < LONGNBSEQ) in ZSTD_compressSubBlock_sequences()
182 op[0] = (BYTE)((nbSeq>>8) + 0x80), op[1] = (BYTE)nbSeq, op+=2; in ZSTD_compressSubBlock_sequences()
184 op[0]=0xFF, MEM_writeLE16(op+1, (U16)(nbSeq - LONGNBSEQ)), op+=3; in ZSTD_compressSubBlock_sequences()
185 if (nbSeq==0) { in ZSTD_compressSubBlock_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.c2303 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()
[all …]
Dzstd_compress_internal.h1388 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
/linux-6.12.1/lib/zstd/decompress/
Dzstd_decompress_block.c610 int ddictIsCold, int nbSeq, U32* wksp, size_t wkspSize, in ZSTD_buildSeqTable() argument
631 if (ddictIsCold && (nbSeq > 24 /* heuristic */)) { in ZSTD_buildSeqTable()
659 int nbSeq; in ZSTD_decodeSeqHeaders() local
666 nbSeq = *ip++; in ZSTD_decodeSeqHeaders()
667 if (!nbSeq) { in ZSTD_decodeSeqHeaders()
672 if (nbSeq > 0x7F) { in ZSTD_decodeSeqHeaders()
673 if (nbSeq == 0xFF) { in ZSTD_decodeSeqHeaders()
675 nbSeq = MEM_readLE16(ip) + LONGNBSEQ; in ZSTD_decodeSeqHeaders()
679 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTD_decodeSeqHeaders()
682 *nbSeqPtr = nbSeq; in ZSTD_decodeSeqHeaders()
[all …]