Lines Matching defs:tableLog

60 FSE_DTable* FSE_createDTable (unsigned tableLog)
62 if (tableLog > FSE_TABLELOG_ABSOLUTE_MAX) tableLog = FSE_TABLELOG_ABSOLUTE_MAX;
63 return (FSE_DTable*)ZSTD_malloc( FSE_DTABLE_SIZE_U32(tableLog) * sizeof (U32) );
71 static size_t FSE_buildDTable_internal(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize)
79 U32 const tableSize = 1 << tableLog;
83 if (FSE_BUILD_DTABLE_WKSP_SIZE(tableLog, maxSymbolValue) > wkspSize) return ERROR(maxSymbolValue_tooLarge);
85 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge);
89 DTableH.tableLog = (U16)tableLog;
91 { S16 const largeLimit= (S16)(1 << (tableLog-1));
169 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) );
176 size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize)
178 return FSE_buildDTable_internal(dt, normalizedCounter, maxSymbolValue, tableLog, workSpace, wkspSize);
194 DTableH->tableLog = 0;
220 DTableH->tableLog = (U16)nbBits;
327 unsigned tableLog;
336 size_t const NCountLength = FSE_readNCount_bmi2(wksp->ncount, &maxSymbolValue, &tableLog, istart, cSrcSize, bmi2);
338 if (tableLog > maxLog) return ERROR(tableLog_tooLarge);
344 if (FSE_DECOMPRESS_WKSP_SIZE(tableLog, maxSymbolValue) > wkspSize) return ERROR(tableLog_tooLarge);
345 workSpace = wksp->dtable + FSE_DTABLE_SIZE_U32(tableLog);
346 wkspSize -= sizeof(*wksp) + FSE_DTABLE_SIZE(tableLog);
348 CHECK_F( FSE_buildDTable_internal(wksp->dtable, wksp->ncount, maxSymbolValue, tableLog, workSpace, wkspSize) );