CTable 130 lib/zstd/huf.h size_t HUF_writeCTable_wksp(void *dst, size_t maxDstSize, const HUF_CElt *CTable, unsigned maxSymbolValue, unsigned huffLog, void *workspace, size_t workspaceSize); CTable 131 lib/zstd/huf.h size_t HUF_compress4X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable); CTable 164 lib/zstd/huf.h size_t HUF_readCTable_wksp(HUF_CElt *CTable, unsigned maxSymbolValue, const void *src, size_t srcSize, void *workspace, size_t workspaceSize); CTable 191 lib/zstd/huf.h size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable); CTable 91 lib/zstd/huf_compress.c FSE_CTable *CTable; CTable 98 lib/zstd/huf_compress.c CTable = (FSE_CTable *)((U32 *)workspace + spaceUsed32); CTable 133 lib/zstd/huf_compress.c CHECK_F(FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, workspace, workspaceSize)); CTable 135 lib/zstd/huf_compress.c CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, weightTable, wtSize, CTable)); CTable 152 lib/zstd/huf_compress.c size_t HUF_writeCTable_wksp(void *dst, size_t maxDstSize, const HUF_CElt *CTable, U32 maxSymbolValue, U32 huffLog, void *workspace, size_t workspaceSize) CTable 180 lib/zstd/huf_compress.c huffWeight[n] = bitsToWeight[CTable[n].nbBits]; CTable 203 lib/zstd/huf_compress.c size_t HUF_readCTable_wksp(HUF_CElt *CTable, U32 maxSymbolValue, const void *src, size_t srcSize, void *workspace, size_t workspaceSize) CTable 248 lib/zstd/huf_compress.c CTable[n].nbBits = (BYTE)(tableLog + 1 - w); CTable 259 lib/zstd/huf_compress.c nbPerRank[CTable[n].nbBits]++; CTable 276 lib/zstd/huf_compress.c CTable[n].val = valPerRank[CTable[n].nbBits]++; CTable 501 lib/zstd/huf_compress.c static size_t HUF_estimateCompressedSize(HUF_CElt *CTable, const unsigned *count, unsigned maxSymbolValue) CTable 506 lib/zstd/huf_compress.c nbBits += CTable[s].nbBits * count[s]; CTable 511 lib/zstd/huf_compress.c static int HUF_validateCTable(const HUF_CElt *CTable, const unsigned *count, unsigned maxSymbolValue) CTable 516 lib/zstd/huf_compress.c bad |= (count[s] != 0) & (CTable[s].nbBits == 0); CTable 521 lib/zstd/huf_compress.c static void HUF_encodeSymbol(BIT_CStream_t *bitCPtr, U32 symbol, const HUF_CElt *CTable) CTable 523 lib/zstd/huf_compress.c BIT_addBitsFast(bitCPtr, CTable[symbol].val, CTable[symbol].nbBits); CTable 538 lib/zstd/huf_compress.c size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable) CTable 558 lib/zstd/huf_compress.c case 3: HUF_encodeSymbol(&bitC, ip[n + 2], CTable); HUF_FLUSHBITS_2(&bitC); CTable 560 lib/zstd/huf_compress.c case 2: HUF_encodeSymbol(&bitC, ip[n + 1], CTable); HUF_FLUSHBITS_1(&bitC); CTable 562 lib/zstd/huf_compress.c case 1: HUF_encodeSymbol(&bitC, ip[n + 0], CTable); HUF_FLUSHBITS(&bitC); CTable 568 lib/zstd/huf_compress.c HUF_encodeSymbol(&bitC, ip[n - 1], CTable); CTable 570 lib/zstd/huf_compress.c HUF_encodeSymbol(&bitC, ip[n - 2], CTable); CTable 572 lib/zstd/huf_compress.c HUF_encodeSymbol(&bitC, ip[n - 3], CTable); CTable 574 lib/zstd/huf_compress.c HUF_encodeSymbol(&bitC, ip[n - 4], CTable); CTable 581 lib/zstd/huf_compress.c size_t HUF_compress4X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable) CTable 597 lib/zstd/huf_compress.c CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable)); CTable 606 lib/zstd/huf_compress.c CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable)); CTable 615 lib/zstd/huf_compress.c CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable)); CTable 624 lib/zstd/huf_compress.c CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, iend - ip, CTable)); CTable 634 lib/zstd/huf_compress.c const HUF_CElt *CTable) CTable 637 lib/zstd/huf_compress.c singleStream ? HUF_compress1X_usingCTable(op, oend - op, src, srcSize, CTable) : HUF_compress4X_usingCTable(op, oend - op, src, srcSize, CTable); CTable 662 lib/zstd/huf_compress.c HUF_CElt *CTable; CTable 684 lib/zstd/huf_compress.c CTable = (HUF_CElt *)workSpace; CTable 716 lib/zstd/huf_compress.c CHECK_V_F(maxBits, HUF_buildCTable_wksp(CTable, count, maxSymbolValue, huffLog, workSpace, wkspSize)); CTable 719 lib/zstd/huf_compress.c memset(CTable + maxSymbolValue + 1, 0, CTableSize - (maxSymbolValue + 1) * sizeof(HUF_CElt)); CTable 724 lib/zstd/huf_compress.c CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, CTable, maxSymbolValue, huffLog, workSpace, wkspSize)); CTable 728 lib/zstd/huf_compress.c size_t const newSize = HUF_estimateCompressedSize(CTable, count, maxSymbolValue); CTable 742 lib/zstd/huf_compress.c memcpy(oldHufTable, CTable, CTableSize); CTable 745 lib/zstd/huf_compress.c return HUF_compressCTable_internal(ostart, op, oend, src, srcSize, singleStream, CTable);