Lines Matching refs:count
292 { int count = normalizedCounter[symbol++]; in FSE_writeNCount_generic() local
294 remaining -= count < 0 ? -count : count; in FSE_writeNCount_generic()
295 count++; /* +1 for extra accuracy */ in FSE_writeNCount_generic()
296 if (count>=threshold) in FSE_writeNCount_generic()
297 count += max; /* [0..max[ [max..threshold[ (...) [threshold+max 2*threshold[ */ in FSE_writeNCount_generic()
298 bitStream += (U32)count << bitCount; in FSE_writeNCount_generic()
300 bitCount -= (count<max); in FSE_writeNCount_generic()
301 previousIs0 = (count==1); in FSE_writeNCount_generic()
380 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2() argument
392 if (count[s] == 0) { in FSE_normalizeM2()
396 if (count[s] <= lowThreshold) { in FSE_normalizeM2()
399 total -= count[s]; in FSE_normalizeM2()
402 if (count[s] <= lowOne) { in FSE_normalizeM2()
405 total -= count[s]; in FSE_normalizeM2()
420 if ((norm[s] == NOT_YET_ASSIGNED) && (count[s] <= lowOne)) { in FSE_normalizeM2()
423 total -= count[s]; in FSE_normalizeM2()
435 if (count[s] > maxC) { maxV=s; maxC=count[s]; } in FSE_normalizeM2()
453 U64 const end = tmpTotal + (count[s] * rStep); in FSE_normalizeM2()
467 const unsigned* count, size_t total, in FSE_normalizeCount() argument
488 if (count[s] == total) return 0; /* rle special case */ in FSE_normalizeCount()
489 if (count[s] == 0) { normalizedCounter[s]=0; continue; } in FSE_normalizeCount()
490 if (count[s] <= lowThreshold) { in FSE_normalizeCount()
494 short proba = (short)((count[s]*step) >> scale); in FSE_normalizeCount()
497 proba += (count[s]*step) - ((U64)proba<<scale) > restToBeat; in FSE_normalizeCount()
505 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount()