Home
last modified time | relevance | path

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

/dragonfly/contrib/zstd/lib/compress/
H A Dzstd_compress_sequences.c63 return nbSeq >= 2048; in ZSTD_useLowProbCount()
76 …RWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)),… in ZSTD_NCountCost()
164 if (mostFrequent == nbSeq) { in ZSTD_selectEncodingType()
166 if (isDefaultAllowed && nbSeq <= 2) { in ZSTD_selectEncodingType()
262 size_t nbSeq_1 = nbSeq; in ZSTD_buildCTable()
264 if (count[codeTable[nbSeq-1]] > 1) { in ZSTD_buildCTable()
265 count[codeTable[nbSeq-1]]--; in ZSTD_buildCTable()
305 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
307 BIT_addBits(&blockStream, sequences[nbSeq-1].matchLength, ML_bits[mlCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
319 BIT_addBits(&blockStream, sequences[nbSeq-1].offset, ofCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
[all …]
H A Dzstd_compress_superblock.c409 const seqDef* const send = sequences + nbSeq; in ZSTD_seqDecompressedSize()
456 if (nbSeq < 0x7F) in ZSTD_compressSubBlock_sequences()
457 *op++ = (BYTE)nbSeq; in ZSTD_compressSubBlock_sequences()
458 else if (nbSeq < LONGNBSEQ) in ZSTD_compressSubBlock_sequences()
459 op[0] = (BYTE)((nbSeq>>8) + 0x80), op[1] = (BYTE)nbSeq, op+=2; in ZSTD_compressSubBlock_sequences()
462 if (nbSeq==0) { in ZSTD_compressSubBlock_sequences()
489 sequences, nbSeq, in ZSTD_compressSubBlock_sequences()
604 size_t nbSeq, const FSE_CTable* fseCTable, in ZSTD_estimateSubBlockSize_symbolType() argument
612 const BYTE* const ctEnd = ctStart + nbSeq; in ZSTD_estimateSubBlockSize_symbolType()
640 size_t nbSeq, in ZSTD_estimateSubBlockSize_sequences() argument
[all …]
H A 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);
H A Dzstd_compress.c2123 assert(nbSeq <= seqStorePtr->maxNbSeq); in ZSTD_seqToCodes()
2124 for (u=0; u<nbSeq; u++) { in ZSTD_seqToCodes()
2202 if (nbSeq < 128) { in ZSTD_entropyCompressSequences_internal()
2203 *op++ = (BYTE)nbSeq; in ZSTD_entropyCompressSequences_internal()
2204 } else if (nbSeq < LONGNBSEQ) { in ZSTD_entropyCompressSequences_internal()
2205 op[0] = (BYTE)((nbSeq>>8) + 0x80); in ZSTD_entropyCompressSequences_internal()
2206 op[1] = (BYTE)nbSeq; in ZSTD_entropyCompressSequences_internal()
2214 if (nbSeq==0) { in ZSTD_entropyCompressSequences_internal()
2241 count, max, llCodeTable, nbSeq, in ZSTD_entropyCompressSequences_internal()
2980 cctx->externSeqStore.size = nbSeq; in ZSTD_referenceExternalSequences()
[all …]
H A Dzstdmt_compress.c312 static void ZSTDMT_setNbSeq(ZSTDMT_seqPool* const seqPool, size_t const nbSeq) in ZSTDMT_setNbSeq() argument
314 ZSTDMT_setBufferSize(seqPool, nbSeq * sizeof(rawSeq)); in ZSTDMT_setNbSeq()
H A Dzstd_compress_internal.h1197 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
/dragonfly/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c583 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()
603 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTD_decodeSeqHeaders()
606 *nbSeqPtr = nbSeq; in ZSTD_decodeSeqHeaders()
1123 if (nbSeq) { in ZSTD_decompressSequences_body()
1256 if (nbSeq) { in ZSTD_decompressSequencesLong_body()
1302 for ( ; seqNb<nbSeq ; seqNb++) { in ZSTD_decompressSequencesLong_body()
[all …]
/dragonfly/contrib/zstd/lib/dictBuilder/
H A Dzdict.c640 { U32 const nbSeq = (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZDICT_countEStats() local
645 for (u=0; u<nbSeq; u++) offsetcodeCount[codePtr[u]]++; in ZDICT_countEStats()
650 for (u=0; u<nbSeq; u++) matchlengthCount[codePtr[u]]++; in ZDICT_countEStats()
655 for (u=0; u<nbSeq; u++) litlengthCount[codePtr[u]]++; in ZDICT_countEStats()
658 if (nbSeq >= 2) { /* rep offsets */ in ZDICT_countEStats()