Lines Matching refs:nbSeq

57 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()
193 || (mostFrequent < (nbSeq >> (defaultNormLog-1))) ) { in ZSTD_selectEncodingType()
208 size_t const NCountCost = ZSTD_NCountCost(count, max, nbSeq, FSELog); in ZSTD_selectEncodingType()
209 size_t const compressedCost = (NCountCost << 3) + ZSTD_entropyCost(count, max, nbSeq); in ZSTD_selectEncodingType()
246 const BYTE* codeTable, size_t nbSeq, in ZSTD_buildCTable() argument
269 size_t nbSeq_1 = nbSeq; in ZSTD_buildCTable()
270 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_buildCTable()
271 if (count[codeTable[nbSeq-1]] > 1) { in ZSTD_buildCTable()
272 count[codeTable[nbSeq-1]]--; in ZSTD_buildCTable()
296 seqDef const* sequences, size_t nbSeq, int longOffsets) in ZSTD_encodeSequences_body() argument
311 FSE_initCState2(&stateMatchLength, CTable_MatchLength, mlCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
312 FSE_initCState2(&stateOffsetBits, CTable_OffsetBits, ofCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
313 FSE_initCState2(&stateLitLength, CTable_LitLength, llCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
314 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
316 BIT_addBits(&blockStream, sequences[nbSeq-1].mlBase, ML_bits[mlCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
319 U32 const ofBits = ofCodeTable[nbSeq-1]; in ZSTD_encodeSequences_body()
322 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase, extraBits); in ZSTD_encodeSequences_body()
325 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase >> extraBits, in ZSTD_encodeSequences_body()
328 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase, ofCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
333 for (n=nbSeq-2 ; n<nbSeq ; n--) { /* intentional underflow */ in ZSTD_encodeSequences_body()
390 seqDef const* sequences, size_t nbSeq, int longOffsets) in ZSTD_encodeSequences_default() argument
396 sequences, nbSeq, longOffsets); in ZSTD_encodeSequences_default()
408 seqDef const* sequences, size_t nbSeq, int longOffsets) in ZSTD_encodeSequences_bmi2() argument
414 sequences, nbSeq, longOffsets); in ZSTD_encodeSequences_bmi2()
424 seqDef const* sequences, size_t nbSeq, int longOffsets, int bmi2) in ZSTD_encodeSequences() argument
433 sequences, nbSeq, longOffsets); in ZSTD_encodeSequences()
441 sequences, nbSeq, longOffsets); in ZSTD_encodeSequences()