tableLog 665 lib/zstd/compress.c const U32 tableLog = FSE_optimalTableLog(LLFSELog, nbSeq, max); tableLog 670 lib/zstd/compress.c FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); tableLog 672 lib/zstd/compress.c size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protected */ tableLog 677 lib/zstd/compress.c FSE_buildCTable_wksp(CTable_LitLength, norm, max, tableLog, workspace, workspaceSize); tableLog 697 lib/zstd/compress.c const U32 tableLog = FSE_optimalTableLog(OffFSELog, nbSeq, max); tableLog 702 lib/zstd/compress.c FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); tableLog 704 lib/zstd/compress.c size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protected */ tableLog 709 lib/zstd/compress.c FSE_buildCTable_wksp(CTable_OffsetBits, norm, max, tableLog, workspace, workspaceSize); tableLog 729 lib/zstd/compress.c const U32 tableLog = FSE_optimalTableLog(MLFSELog, nbSeq, max); tableLog 734 lib/zstd/compress.c FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); tableLog 736 lib/zstd/compress.c size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protected */ tableLog 741 lib/zstd/compress.c FSE_buildCTable_wksp(CTable_MatchLength, norm, max, tableLog, workspace, workspaceSize); tableLog 772 lib/zstd/decompress.c U32 tableLog; tableLog 781 lib/zstd/decompress.c size_t const headerSize = FSE_readNCount(norm, &max, &tableLog, src, srcSize); tableLog 784 lib/zstd/decompress.c if (tableLog > maxLog) tableLog 786 lib/zstd/decompress.c FSE_buildDTable_wksp(DTableSpace, norm, max, tableLog, workspace, workspaceSize); tableLog 219 lib/zstd/entropy_common.c U32 const tableLog = BIT_highbit32(weightTotal) + 1; tableLog 220 lib/zstd/entropy_common.c if (tableLog > HUF_TABLELOG_MAX) tableLog 222 lib/zstd/entropy_common.c *tableLogPtr = tableLog; tableLog 225 lib/zstd/entropy_common.c U32 const total = 1 << tableLog; tableLog 107 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigned *count, size_t srcSize, unsigned maxSymbolValue); tableLog 112 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog); tableLog 118 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_writeNCount(void *buffer, size_t bufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); tableLog 190 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize); tableLog 276 lib/zstd/fse.h size_t FSE_buildCTable_wksp(FSE_CTable *ct, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, size_t wkspSize); tableLog 431 lib/zstd/fse.h const U32 tableLog = ZSTD_read16(ptr); tableLog 432 lib/zstd/fse.h statePtr->value = (ptrdiff_t)1 << tableLog; tableLog 434 lib/zstd/fse.h statePtr->symbolTT = ((const U32 *)ct + 1 + (tableLog ? (1 << (tableLog - 1)) : 1)); tableLog 435 lib/zstd/fse.h statePtr->stateLog = tableLog; tableLog 471 lib/zstd/fse.h U16 tableLog; tableLog 485 lib/zstd/fse.h DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); tableLog 92 lib/zstd/fse_compress.c size_t FSE_buildCTable_wksp(FSE_CTable *ct, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize) tableLog 94 lib/zstd/fse_compress.c U32 const tableSize = 1 << tableLog; tableLog 98 lib/zstd/fse_compress.c void *const FSCT = ((U32 *)ptr) + 1 /* header */ + (tableLog ? tableSize >> 1 : 1); tableLog 110 lib/zstd/fse_compress.c spaceUsed32 += ALIGN(sizeof(FSE_FUNCTION_TYPE) * ((size_t)1 << tableLog), sizeof(U32)) >> 2; tableLog 118 lib/zstd/fse_compress.c tableU16[-2] = (U16)tableLog; tableLog 176 lib/zstd/fse_compress.c symbolTT[s].deltaNbBits = (tableLog << 16) - (1 << tableLog); tableLog 181 lib/zstd/fse_compress.c U32 const maxBitsOut = tableLog - BIT_highbit32(normalizedCounter[s] - 1); tableLog 197 lib/zstd/fse_compress.c size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog) tableLog 199 lib/zstd/fse_compress.c size_t const maxHeaderSize = (((maxSymbolValue + 1) * tableLog) >> 3) + 3; tableLog 203 lib/zstd/fse_compress.c static size_t FSE_writeNCount_generic(void *header, size_t headerBufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, tableLog 210 lib/zstd/fse_compress.c const int tableSize = 1 << tableLog; tableLog 221 lib/zstd/fse_compress.c bitStream += (tableLog - FSE_MIN_TABLELOG) << bitCount; tableLog 227 lib/zstd/fse_compress.c nbBits = tableLog + 1; tableLog 301 lib/zstd/fse_compress.c size_t FSE_writeNCount(void *buffer, size_t bufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) tableLog 303 lib/zstd/fse_compress.c if (tableLog > FSE_MAX_TABLELOG) tableLog 305 lib/zstd/fse_compress.c if (tableLog < FSE_MIN_TABLELOG) tableLog 308 lib/zstd/fse_compress.c if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) tableLog 309 lib/zstd/fse_compress.c return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); tableLog 311 lib/zstd/fse_compress.c return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1); tableLog 477 lib/zstd/fse_compress.c size_t FSE_sizeof_CTable(unsigned maxSymbolValue, unsigned tableLog) tableLog 479 lib/zstd/fse_compress.c if (tableLog > FSE_MAX_TABLELOG) tableLog 481 lib/zstd/fse_compress.c return FSE_CTABLE_SIZE_U32(tableLog, maxSymbolValue) * sizeof(U32); tableLog 496 lib/zstd/fse_compress.c U32 tableLog = maxTableLog; tableLog 498 lib/zstd/fse_compress.c if (tableLog == 0) tableLog 499 lib/zstd/fse_compress.c tableLog = FSE_DEFAULT_TABLELOG; tableLog 500 lib/zstd/fse_compress.c if (maxBitsSrc < tableLog) tableLog 501 lib/zstd/fse_compress.c tableLog = maxBitsSrc; /* Accuracy can be reduced */ tableLog 502 lib/zstd/fse_compress.c if (minBits > tableLog) tableLog 503 lib/zstd/fse_compress.c tableLog = minBits; /* Need a minimum to safely represent all symbol values */ tableLog 504 lib/zstd/fse_compress.c if (tableLog < FSE_MIN_TABLELOG) tableLog 505 lib/zstd/fse_compress.c tableLog = FSE_MIN_TABLELOG; tableLog 506 lib/zstd/fse_compress.c if (tableLog > FSE_MAX_TABLELOG) tableLog 507 lib/zstd/fse_compress.c tableLog = FSE_MAX_TABLELOG; tableLog 508 lib/zstd/fse_compress.c return tableLog; tableLog 519 lib/zstd/fse_compress.c static size_t FSE_normalizeM2(short *norm, U32 tableLog, const unsigned *count, size_t total, U32 maxSymbolValue) tableLog 527 lib/zstd/fse_compress.c U32 const lowThreshold = (U32)(total >> tableLog); tableLog 528 lib/zstd/fse_compress.c U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); tableLog 550 lib/zstd/fse_compress.c ToDistribute = (1 << tableLog) - distributed; tableLog 563 lib/zstd/fse_compress.c ToDistribute = (1 << tableLog) - distributed; tableLog 587 lib/zstd/fse_compress.c U64 const vStepLog = 62 - tableLog; tableLog 608 lib/zstd/fse_compress.c size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigned *count, size_t total, unsigned maxSymbolValue) tableLog 611 lib/zstd/fse_compress.c if (tableLog == 0) tableLog 612 lib/zstd/fse_compress.c tableLog = FSE_DEFAULT_TABLELOG; tableLog 613 lib/zstd/fse_compress.c if (tableLog < FSE_MIN_TABLELOG) tableLog 615 lib/zstd/fse_compress.c if (tableLog > FSE_MAX_TABLELOG) tableLog 617 lib/zstd/fse_compress.c if (tableLog < FSE_minTableLog(total, maxSymbolValue)) tableLog 622 lib/zstd/fse_compress.c U64 const scale = 62 - tableLog; tableLog 625 lib/zstd/fse_compress.c int stillToDistribute = 1 << tableLog; tableLog 629 lib/zstd/fse_compress.c U32 lowThreshold = (U32)(total >> tableLog); tableLog 655 lib/zstd/fse_compress.c size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue); tableLog 662 lib/zstd/fse_compress.c return tableLog; tableLog 95 lib/zstd/fse_decompress.c size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize) tableLog 102 lib/zstd/fse_decompress.c U32 const tableSize = 1 << tableLog; tableLog 110 lib/zstd/fse_decompress.c if (tableLog > FSE_MAX_TABLELOG) tableLog 116 lib/zstd/fse_decompress.c DTableH.tableLog = (U16)tableLog; tableLog 119 lib/zstd/fse_decompress.c S16 const largeLimit = (S16)(1 << (tableLog - 1)); tableLog 159 lib/zstd/fse_decompress.c tableDecode[u].nbBits = (BYTE)(tableLog - BIT_highbit32((U32)nextState)); tableLog 177 lib/zstd/fse_decompress.c DTableH->tableLog = 0; tableLog 203 lib/zstd/fse_decompress.c DTableH->tableLog = (U16)nbBits; tableLog 298 lib/zstd/fse_decompress.c unsigned tableLog; tableLog 319 lib/zstd/fse_decompress.c NCountLength = FSE_readNCount(counting, &maxSymbolValue, &tableLog, istart, cSrcSize); tableLog 324 lib/zstd/fse_decompress.c if (tableLog > maxLog) tableLog 329 lib/zstd/fse_decompress.c CHECK_F(FSE_buildDTable_wksp(dt, counting, maxSymbolValue, tableLog, workspace, workspaceSize)); tableLog 57 lib/zstd/huf.h size_t HUF_compress4X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, tableLog 144 lib/zstd/huf.h size_t HUF_compress4X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, tableLog 189 lib/zstd/huf.h size_t HUF_compress1X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, tableLog 197 lib/zstd/huf.h size_t HUF_compress1X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, tableLog 89 lib/zstd/huf_compress.c U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; tableLog 123 lib/zstd/huf_compress.c tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); tableLog 124 lib/zstd/huf_compress.c CHECK_F(FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue)); tableLog 128 lib/zstd/huf_compress.c CHECK_V_F(hSize, FSE_writeNCount(op, oend - op, norm, maxSymbolValue, tableLog)); tableLog 133 lib/zstd/huf_compress.c CHECK_F(FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, workspace, workspaceSize)); tableLog 207 lib/zstd/huf_compress.c U32 tableLog = 0; tableLog 223 lib/zstd/huf_compress.c readSize = HUF_readStats_wksp(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, srcSize, workspace, workspaceSize); tableLog 228 lib/zstd/huf_compress.c if (tableLog > HUF_TABLELOG_MAX) tableLog 236 lib/zstd/huf_compress.c for (n = 1; n <= tableLog; n++) { tableLog 248 lib/zstd/huf_compress.c CTable[n].nbBits = (BYTE)(tableLog + 1 - w); tableLog 262 lib/zstd/huf_compress.c valPerRank[tableLog + 1] = 0; /* for w==0 */ tableLog 266 lib/zstd/huf_compress.c for (n = tableLog; n > 0; n--) { /* start at n=tablelog <-> w=1 */ tableLog 70 lib/zstd/huf_decompress.c BYTE tableLog; tableLog 92 lib/zstd/huf_decompress.c U32 tableLog = 0; tableLog 115 lib/zstd/huf_decompress.c iSize = HUF_readStats_wksp(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, srcSize, workspace, workspaceSize); tableLog 122 lib/zstd/huf_decompress.c if (tableLog > (U32)(dtd.maxTableLog + 1)) tableLog 125 lib/zstd/huf_decompress.c dtd.tableLog = (BYTE)tableLog; tableLog 132 lib/zstd/huf_decompress.c for (n = 1; n < tableLog + 1; n++) { tableLog 148 lib/zstd/huf_decompress.c D.nbBits = (BYTE)(tableLog + 1 - w); tableLog 207 lib/zstd/huf_decompress.c U32 const dtLog = dtd.tableLog; tableLog 283 lib/zstd/huf_decompress.c U32 const dtLog = dtd.tableLog; tableLog 484 lib/zstd/huf_decompress.c U32 tableLog, maxW, sizeOfSort, nbSymbols; tableLog 525 lib/zstd/huf_decompress.c iSize = HUF_readStats_wksp(weightList, HUF_SYMBOLVALUE_MAX + 1, rankStats, &nbSymbols, &tableLog, src, srcSize, workspace, workspaceSize); tableLog 530 lib/zstd/huf_decompress.c if (tableLog > maxTableLog) tableLog 534 lib/zstd/huf_decompress.c for (maxW = tableLog; rankStats[maxW] == 0; maxW--) { tableLog 565 lib/zstd/huf_decompress.c int const rescale = (maxTableLog - tableLog) - 1; /* tableLog <= maxTableLog */ tableLog 575 lib/zstd/huf_decompress.c U32 const minBits = tableLog + 1 - maxW; tableLog 587 lib/zstd/huf_decompress.c HUF_fillDTableX4(dt, maxTableLog, sortedSymbol, sizeOfSort, rankStart0, rankVal, maxW, tableLog + 1); tableLog 589 lib/zstd/huf_decompress.c dtd.tableLog = (BYTE)maxTableLog; tableLog 673 lib/zstd/huf_decompress.c HUF_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog); tableLog 742 lib/zstd/huf_decompress.c U32 const dtLog = dtd.tableLog;