Lines Matching refs:total
175 { unsigned total = 0; in FSE_buildCTable_wksp() local
188 assert(total <= INT_MAX); in FSE_buildCTable_wksp()
189 symbolTT[s].deltaFindState = (int)(total - 1); in FSE_buildCTable_wksp()
190 total ++; in FSE_buildCTable_wksp()
197 symbolTT[s].deltaFindState = (int)(total - (unsigned)normalizedCounter[s]); in FSE_buildCTable_wksp()
198 total += (unsigned)normalizedCounter[s]; in FSE_buildCTable_wksp()
387 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2() argument
395 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2()
396 U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); in FSE_normalizeM2()
406 total -= count[s]; in FSE_normalizeM2()
412 total -= count[s]; in FSE_normalizeM2()
423 if ((total / ToDistribute) > lowOne) { in FSE_normalizeM2()
425 lowOne = (U32)((total * 3) / (ToDistribute * 2)); in FSE_normalizeM2()
430 total -= count[s]; in FSE_normalizeM2()
447 if (total == 0) { in FSE_normalizeM2()
456 …U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2()
474 const unsigned* count, size_t total, in FSE_normalizeCount() argument
481 …if (tableLog < FSE_minTableLog(total, maxSymbolValue)) return ERROR(GENERIC); /* Too small table… in FSE_normalizeCount()
486 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount()
492 U32 lowThreshold = (U32)(total >> tableLog); in FSE_normalizeCount()
495 if (count[s] == total) return 0; /* rle special case */ in FSE_normalizeCount()
512 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount()