Lines Matching refs:total
177 { unsigned total = 0;
190 assert(total <= INT_MAX);
191 symbolTT[s].deltaFindState = (int)(total - 1);
192 total ++;
199 symbolTT[s].deltaFindState = (int)(total - (unsigned)normalizedCounter[s]);
200 total += (unsigned)normalizedCounter[s];
380 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 maxSymbolValue, short lowProbCount)
388 U32 const lowThreshold = (U32)(total >> tableLog);
389 U32 lowOne = (U32)((total * 3) >> (tableLog + 1));
399 total -= count[s];
405 total -= count[s];
416 if ((total / ToDistribute) > lowOne) {
418 lowOne = (U32)((total * 3) / (ToDistribute * 2));
423 total -= count[s];
440 if (total == 0) {
449 U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on remaining */
467 const unsigned* count, size_t total,
474 if (tableLog < FSE_minTableLog(total, maxSymbolValue)) return ERROR(GENERIC); /* Too small tableLog, compression potentially impossible */
479 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */
485 U32 lowThreshold = (U32)(total >> tableLog);
488 if (count[s] == total) return 0; /* rle special case */
505 size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue, lowProbCount);