opt: init statistics from dictionary

instead of starting from fake "default" statistics.
This commit is contained in:
Yann Collet committed 2018-05-10 17:59:12 -07:00
1 parent 74b1c75d64
commit 1a26ec6e8d
4 files changed
+87 -23

No files matched your search

+4 -1
View File
@@ -143,7 +143,10 @@ size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsi
for (s=0; s<=maxSymbolValue; s++) {
switch (normalizedCounter[s])
{
case 0: break;
case 0:
/* filling nonetheless, for compatibility with FSE_getMaxNbBits() */
symbolTT[s].deltaNbBits = (tableLog+1) << 16;
break;
case -1:
case 1: