opt: init statistics from dictionary
instead of starting from fake "default" statistics.
This commit is contained in:
1 parent
74b1c75d64
commit
1a26ec6e8d
4 files changed
+87
-23
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user