• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/contrib/zstd/lib/legacy/

Lines Matching refs:tableLog

758     Note that its size depends on 'tableLog' */
760 FSEv07_DTable* FSEv07_createDTable(unsigned tableLog);
766 size_t FSEv07_buildDTable (FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
787 FSEv07_readNCount() will provide 'tableLog' and 'maxSymbolValue'.
861 U16 tableLog;
876 DStatePtr->state = BITv07_readBits(bitD, DTableH->tableLog);
1052 #define HUFv07_TABLELOG_MAX 12 /* max configured tableLog (for static allocation); can be modified up to HUFv07_ABSOLUTEMAX_TABLELOG */
1053 #define HUFv07_TABLELOG_DEFAULT 11 /* tableLog by default, when not specified */
1223 nbBits = (bitStream & 0xF) + FSEv07_MIN_TABLELOG; /* extract tableLog */
1354 { U32 const tableLog = BITv07_highbit32(weightTotal) + 1;
1355 if (tableLog > HUFv07_TABLELOG_ABSOLUTEMAX) return ERROR(corruption_detected);
1356 *tableLogPtr = tableLog;
1358 { U32 const total = 1 << tableLog;
1467 FSEv07_DTable* FSEv07_createDTable (unsigned tableLog)
1469 if (tableLog > FSEv07_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv07_TABLELOG_ABSOLUTE_MAX;
1470 return (FSEv07_DTable*)malloc( FSEv07_DTABLE_SIZE_U32(tableLog) * sizeof (U32) );
1478 size_t FSEv07_buildDTable(FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog)
1485 U32 const tableSize = 1 << tableLog;
1490 if (tableLog > FSEv07_MAX_TABLELOG) return ERROR(tableLog_tooLarge);
1494 DTableH.tableLog = (U16)tableLog;
1496 { S16 const largeLimit= (S16)(1 << (tableLog-1));
1529 tableDecode[u].nbBits = (BYTE) (tableLog - BITv07_highbit32 ((U32)nextState) );
1550 DTableH->tableLog = 0;
1576 DTableH->tableLog = (U16)nbBits;
1675 unsigned tableLog;
1681 { size_t const NCountLength = FSEv07_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize);
1688 { size_t const errorCode = FSEv07_buildDTable (dt, counting, maxSymbolValue, tableLog);
1760 typedef struct { BYTE maxTableLog; BYTE tableType; BYTE tableLog; BYTE reserved; } DTableDesc;
1780 U32 tableLog = 0;
1789 iSize = HUFv07_readStats(huffWeight, HUFv07_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, srcSize);
1794 if (tableLog > (U32)(dtd.maxTableLog+1)) return ERROR(tableLog_tooLarge); /* DTable too small, huffman tree cannot fit in */
1796 dtd.tableLog = (BYTE)tableLog;
1802 for (n=1; n<tableLog+1; n++) {
1815 D.byte = (BYTE)n; D.nbBits = (BYTE)(tableLog + 1 - w);
1878 U32 const dtLog = dtd.tableLog;
1957 U32 const dtLog = dtd.tableLog;
2142 U32 tableLog, maxW, sizeOfSort, nbSymbols;
2153 iSize = HUFv07_readStats(weightList, HUFv07_SYMBOLVALUE_MAX + 1, rankStats, &nbSymbols, &tableLog, src, srcSize);
2157 if (tableLog > maxTableLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */
2160 for (maxW = tableLog; rankStats[maxW]==0; maxW--) {} /* necessarily finds a solution before 0 */
2186 { int const rescale = (maxTableLog-tableLog) - 1; /* tableLog <= maxTableLog */
2194 { U32 const minBits = tableLog+1 - maxW;
2206 tableLog+1);
2208 dtd.tableLog = (BYTE)maxTableLog;
2293 HUFv07_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog);
2367 U32 const dtLog = dtd.tableLog;
3431 { U32 tableLog;
3433 size_t const headerSize = FSEv07_readNCount(norm, &max, &tableLog, src, srcSize);
3435 if (tableLog > maxLog) return ERROR(corruption_detected);
3436 FSEv07_buildDTable(DTable, norm, max, tableLog);