Lines Matching refs:total

134     {   unsigned total = 0;  in FSE_buildCTable_wksp()  local
147 symbolTT[s].deltaFindState = total - 1; in FSE_buildCTable_wksp()
148 total ++; in FSE_buildCTable_wksp()
155 symbolTT[s].deltaFindState = total - normalizedCounter[s]; in FSE_buildCTable_wksp()
156 total += normalizedCounter[s]; in FSE_buildCTable_wksp()
344 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2() argument
352 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2()
353 U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); in FSE_normalizeM2()
363 total -= count[s]; in FSE_normalizeM2()
369 total -= count[s]; in FSE_normalizeM2()
380 if ((total / ToDistribute) > lowOne) { in FSE_normalizeM2()
382 lowOne = (U32)((total * 3) / (ToDistribute * 2)); in FSE_normalizeM2()
387 total -= count[s]; in FSE_normalizeM2()
404 if (total == 0) { in FSE_normalizeM2()
413 …U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2()
431 const unsigned* count, size_t total, in FSE_normalizeCount() argument
438 …if (tableLog < FSE_minTableLog(total, maxSymbolValue)) return ERROR(GENERIC); /* Too small table… in FSE_normalizeCount()
443 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount()
449 U32 lowThreshold = (U32)(total >> tableLog); in FSE_normalizeCount()
452 if (count[s] == total) return 0; /* rle special case */ in FSE_normalizeCount()
469 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount()