Lines Matching refs:total

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