Home
last modified time | relevance | path

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

/linux/lib/zstd/compress/
H A Dzstd_compress_sequences.c58 static unsigned ZSTD_useLowProbCount(size_t const nbSeq) in ZSTD_useLowProbCount() argument
64 return nbSeq >= 2048; in ZSTD_useLowProbCount()
72 size_t const nbSeq, unsigned const FSELog) in ZSTD_NCountCost() argument
76 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_NCountCost()
77 …RWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)),… in ZSTD_NCountCost()
160 size_t const mostFrequent, size_t nbSeq, unsigned const FSELog, in ZSTD_selectEncodingType() argument
167 if (mostFrequent == nbSeq) { in ZSTD_selectEncodingType()
169 if (isDefaultAllowed && nbSeq <= 2) { in ZSTD_selectEncodingType()
189 && (nbSeq < staticFse_nbSeq_max) ) { in ZSTD_selectEncodingType()
193 if ( (nbSeq < dynamicFse_nbSeq_min) in ZSTD_selectEncodingType()
[all …]
H A Dzstd_compress_superblock.c166 const SeqDef* sequences, size_t nbSeq, in ZSTD_compressSubBlock_sequences() argument
178 …compressSubBlock_sequences (nbSeq=%zu, writeEntropy=%d, longOffsets=%d)", nbSeq, writeEntropy, lon… in ZSTD_compressSubBlock_sequences()
184 if (nbSeq < 128) in ZSTD_compressSubBlock_sequences()
185 *op++ = (BYTE)nbSeq; in ZSTD_compressSubBlock_sequences()
186 else if (nbSeq < LONGNBSEQ) in ZSTD_compressSubBlock_sequences()
187 op[0] = (BYTE)((nbSeq>>8) + 0x80), op[1] = (BYTE)nbSeq, op+=2; in ZSTD_compressSubBlock_sequences()
189 op[0]=0xFF, MEM_writeLE16(op+1, (U16)(nbSeq - LONGNBSEQ)), op+=3; in ZSTD_compressSubBlock_sequences()
190 if (nbSeq==0) { in ZSTD_compressSubBlock_sequences()
217 sequences, nbSeq, in ZSTD_compressSubBlock_sequences()
266 const SeqDef* sequences, size_t nbSeq, in ZSTD_compressSubBlock() argument
[all …]
H A Dzstd_compress_sequences.h27 size_t const mostFrequent, size_t nbSeq, unsigned const FSELog,
37 const BYTE* codeTable, size_t nbSeq,
47 SeqDef const* sequences, size_t nbSeq, int longOffsets, int bmi2);
H A Dzstd_compress.c2613 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()
[all …]
H A Dzstd_compress_internal.h1593 void ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
/linux/lib/zstd/decompress/
H A Dzstd_decompress_block.c653 int ddictIsCold, int nbSeq, U32* wksp, size_t wkspSize, in ZSTD_buildSeqTable() argument
674 if (ddictIsCold && (nbSeq > 24 /* heuristic */)) { in ZSTD_buildSeqTable()
702 int nbSeq; in ZSTD_decodeSeqHeaders() local
709 nbSeq = *ip++; in ZSTD_decodeSeqHeaders()
710 if (nbSeq > 0x7F) { in ZSTD_decodeSeqHeaders()
711 if (nbSeq == 0xFF) { in ZSTD_decodeSeqHeaders()
713 nbSeq = MEM_readLE16(ip) + LONGNBSEQ; in ZSTD_decodeSeqHeaders()
717 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTD_decodeSeqHeaders()
720 *nbSeqPtr = nbSeq; in ZSTD_decodeSeqHeaders()
722 if (nbSeq == 0) { in ZSTD_decodeSeqHeaders()
[all …]