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

Lines Matching refs:tableLog

591     Note that its size depends on 'tableLog' and 'maxSymbolValue' */
689 U16 tableLog;
704 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog);
1085 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog)
1090 const U32 tableSize = 1 << tableLog;
1096 const S16 largeLimit= (S16)(1 << (tableLog-1));
1102 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge);
1105 DTableH.tableLog = (U16)tableLog;
1141 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) );
1183 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */
1289 DTableH->tableLog = 0;
1314 DTableH->tableLog = (U16)nbBits;
1415 unsigned tableLog;
1422 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize);
1428 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog);
1508 #define HUF_MAX_TABLELOG 12 /* max configured tableLog (for static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG */
1509 #define HUF_DEFAULT_TABLELOG HUF_MAX_TABLELOG /* tableLog by default, when not specified */
1536 U32 tableLog;
1588 tableLog = BIT_highbit32(weightTotal) + 1;
1589 if (tableLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected);
1591 U32 total = 1 << tableLog;
1605 *tableLogPtr = tableLog;
1618 U32 tableLog = 0;
1630 iSize = HUF_readStats(huffWeight, HUF_MAX_SYMBOL_VALUE + 1, rankVal, &nbSymbols, &tableLog, src, srcSize);
1634 if (tableLog > DTable[0]) return ERROR(tableLog_tooLarge); /* DTable is too small */
1635 DTable[0] = (U16)tableLog; /* maybe should separate sizeof DTable, as allocated, from used size of DTable, in case of DTable re-use */
1639 for (n=1; n<=tableLog; n++)
1653 D.byte = (BYTE)n; D.nbBits = (BYTE)(tableLog + 1 - w);
1924 U32 tableLog, maxW, sizeOfSort, nbSymbols;
1935 iSize = HUF_readStats(weightList, HUF_MAX_SYMBOL_VALUE + 1, rankStats, &nbSymbols, &tableLog, src, srcSize);
1939 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */
1942 for (maxW = tableLog; rankStats[maxW]==0; maxW--)
1973 const U32 minBits = tableLog+1 - maxW;
1976 const int rescale = (memLog-tableLog) - 1; /* tableLog <= memLog */
1997 tableLog+1);
2259 U32 tableLog, maxW, sizeOfSort, nbSymbols;
2268 iSize = HUF_readStats(weightList, HUF_MAX_SYMBOL_VALUE + 1, rankStats, &nbSymbols, &tableLog, src, srcSize);
2272 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable is too small */
2275 for (maxW = tableLog; rankStats[maxW]==0; maxW--)
2307 const U32 minBits = tableLog+1 - maxW;
2310 const int rescale = (memLog-tableLog) - 1; /* tableLog <= memLog */
2343 tableLog+1, DSeq, DDesc);