Home
last modified time | relevance | path

Searched refs:ToDistribute (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dfse_compress.c356 U32 ToDistribute; in FSE_normalizeM2() local
382 ToDistribute = (1 << tableLog) - distributed; in FSE_normalizeM2()
384 if (ToDistribute == 0) in FSE_normalizeM2()
387 if ((total / ToDistribute) > lowOne) { in FSE_normalizeM2()
389 lowOne = (U32)((total * 3) / (ToDistribute * 2)); in FSE_normalizeM2()
397 ToDistribute = (1 << tableLog) - distributed; in FSE_normalizeM2()
407 norm[maxV] += (short)ToDistribute; in FSE_normalizeM2()
413 for (s=0; ToDistribute > 0; s = (s+1)%(maxSymbolValue+1)) in FSE_normalizeM2()
414 if (norm[s] > 0) { ToDistribute--; norm[s]++; } in FSE_normalizeM2()
420 …U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c7832 U32 ToDistribute; in FSE_normalizeM2() local
7858 ToDistribute = (1 << tableLog) - distributed; in FSE_normalizeM2()
7860 if (ToDistribute == 0) in FSE_normalizeM2()
7863 if ((total / ToDistribute) > lowOne) { in FSE_normalizeM2()
7865 lowOne = (U32)((total * 3) / (ToDistribute * 2)); in FSE_normalizeM2()
7873 ToDistribute = (1 << tableLog) - distributed; in FSE_normalizeM2()
7883 norm[maxV] += (short)ToDistribute; in FSE_normalizeM2()
7889 for (s=0; ToDistribute > 0; s = (s+1)%(maxSymbolValue+1)) in FSE_normalizeM2()
7890 if (norm[s] > 0) { ToDistribute--; norm[s]++; } in FSE_normalizeM2()
7896 … U64 const rStep = ((((U64)1<<vStepLog) * ToDistribute) + mid) / total; /* scale on remaining */ in FSE_normalizeM2()