Lines Matching refs:nbSeq

58 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()
194 || (mostFrequent < (nbSeq >> (defaultNormLog-1))) ) { in ZSTD_selectEncodingType()
209 size_t const NCountCost = ZSTD_NCountCost(count, max, nbSeq, FSELog); in ZSTD_selectEncodingType()
210 size_t const compressedCost = (NCountCost << 3) + ZSTD_entropyCost(count, max, nbSeq); in ZSTD_selectEncodingType()
247 const BYTE* codeTable, size_t nbSeq, in ZSTD_buildCTable() argument
270 size_t nbSeq_1 = nbSeq; in ZSTD_buildCTable()
271 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_buildCTable()
272 if (count[codeTable[nbSeq-1]] > 1) { in ZSTD_buildCTable()
273 count[codeTable[nbSeq-1]]--; in ZSTD_buildCTable()
297 SeqDef const* sequences, size_t nbSeq, int longOffsets) in ZSTD_encodeSequences_body() argument
312 FSE_initCState2(&stateMatchLength, CTable_MatchLength, mlCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
313 FSE_initCState2(&stateOffsetBits, CTable_OffsetBits, ofCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
314 FSE_initCState2(&stateLitLength, CTable_LitLength, llCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
315 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
317 BIT_addBits(&blockStream, sequences[nbSeq-1].mlBase, ML_bits[mlCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
320 U32 const ofBits = ofCodeTable[nbSeq-1]; in ZSTD_encodeSequences_body()
323 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase, extraBits); in ZSTD_encodeSequences_body()
326 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase >> extraBits, in ZSTD_encodeSequences_body()
329 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase, ofCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
334 for (n=nbSeq-2 ; n<nbSeq ; n--) { /* intentional underflow */ in ZSTD_encodeSequences_body()
391 SeqDef const* sequences, size_t nbSeq, int longOffsets) in ZSTD_encodeSequences_default() argument
397 sequences, nbSeq, longOffsets); in ZSTD_encodeSequences_default()
409 SeqDef const* sequences, size_t nbSeq, int longOffsets) in ZSTD_encodeSequences_bmi2() argument
415 sequences, nbSeq, longOffsets); in ZSTD_encodeSequences_bmi2()
425 SeqDef const* sequences, size_t nbSeq, int longOffsets, int bmi2) in ZSTD_encodeSequences() argument
434 sequences, nbSeq, longOffsets); in ZSTD_encodeSequences()
442 sequences, nbSeq, longOffsets); in ZSTD_encodeSequences()