Lines Matching defs:total
168 unsigned total = 0;
177 symbolTT[s].deltaFindState = total - 1;
178 total++;
184 symbolTT[s].deltaFindState = total - normalizedCounter[s];
185 total += normalizedCounter[s];
519 static size_t FSE_normalizeM2(short *norm, U32 tableLog, const unsigned *count, size_t total, U32 maxSymbolValue)
527 U32 const lowThreshold = (U32)(total >> tableLog);
528 U32 lowOne = (U32)((total * 3) >> (tableLog + 1));
538 total -= count[s];
544 total -= count[s];
552 if ((total / ToDistribute) > lowOne) {
554 lowOne = (U32)((total * 3) / (ToDistribute * 2));
559 total -= count[s];
578 if (total == 0) {
589 U64 const rStep = div_u64((((U64)1 << vStepLog) * ToDistribute) + mid, (U32)total); /* scale on remaining */
608 size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigned *count, size_t total, unsigned maxSymbolValue)
617 if (tableLog < FSE_minTableLog(total, maxSymbolValue))
623 U64 const step = div_u64((U64)1 << 62, (U32)total); /* <== here, one division ! */
629 U32 lowThreshold = (U32)(total >> tableLog);
632 if (count[s] == total)
655 size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue);