Lines Matching refs:total

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