Lines Matching refs:CTable
61 FSE_CTable CTable[FSE_CTABLE_SIZE_U32(MAX_FSE_TABLELOG_FOR_HUFF_HEADER, HUF_TABLELOG_MAX)]; member
97 …CHECK_F( FSE_buildCTable_wksp(wksp->CTable, wksp->norm, maxSymbolValue, tableLog, wksp->scratchBuf… in HUF_compressWeights()
98 …_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->CTable) ); in HUF_compressWeights()
114 const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog, in HUF_writeCTable_wksp() argument
130 wksp->huffWeight[n] = wksp->bitsToWeight[CTable[n].nbBits]; in HUF_writeCTable_wksp()
153 const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog) in HUF_writeCTable() argument
156 …return HUF_writeCTable_wksp(dst, maxDstSize, CTable, maxSymbolValue, huffLog, &wksp, sizeof(wksp)); in HUF_writeCTable()
160 size_t HUF_readCTable (HUF_CElt* CTable, unsigned* maxSymbolValuePtr, const void* src, size_t srcSi… in HUF_readCTable() argument
186 CTable[n].nbBits = (BYTE)(tableLog + 1 - w) & -(w != 0); in HUF_readCTable()
192 { U32 n; for (n=0; n<nbSymbols; n++) nbPerRank[CTable[n].nbBits]++; } in HUF_readCTable()
202 { U32 n; for (n=0; n<nbSymbols; n++) CTable[n].val = valPerRank[CTable[n].nbBits]++; } in HUF_readCTable()
488 static void HUF_buildCTableFromTree(HUF_CElt* CTable, nodeElt const* huffNode, int nonNullRank, U32… in HUF_buildCTableFromTree() argument
505 … CTable[huffNode[n].byte].nbBits = huffNode[n].nbBits; /* push nbBits per symbol, symbol order */ in HUF_buildCTableFromTree()
507 … CTable[n].val = valPerRank[CTable[n].nbBits]++; /* assign value within rank, symbol order */ in HUF_buildCTableFromTree()
541 size_t HUF_estimateCompressedSize(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbol… in HUF_estimateCompressedSize() argument
546 nbBits += CTable[s].nbBits * count[s]; in HUF_estimateCompressedSize()
551 int HUF_validateCTable(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue) { in HUF_validateCTable() argument
555 bad |= (count[s] != 0) & (CTable[s].nbBits == 0); in HUF_validateCTable()
563 HUF_encodeSymbol(BIT_CStream_t* bitCPtr, U32 symbol, const HUF_CElt* CTable) in HUF_encodeSymbol() argument
565 BIT_addBitsFast(bitCPtr, CTable[symbol].val, CTable[symbol].nbBits); in HUF_encodeSymbol()
579 const HUF_CElt* CTable) in HUF_compress1X_usingCTable_internal_body() argument
597 HUF_encodeSymbol(&bitC, ip[n+ 2], CTable); in HUF_compress1X_usingCTable_internal_body()
601 HUF_encodeSymbol(&bitC, ip[n+ 1], CTable); in HUF_compress1X_usingCTable_internal_body()
605 HUF_encodeSymbol(&bitC, ip[n+ 0], CTable); in HUF_compress1X_usingCTable_internal_body()
613 HUF_encodeSymbol(&bitC, ip[n- 1], CTable); in HUF_compress1X_usingCTable_internal_body()
615 HUF_encodeSymbol(&bitC, ip[n- 2], CTable); in HUF_compress1X_usingCTable_internal_body()
617 HUF_encodeSymbol(&bitC, ip[n- 3], CTable); in HUF_compress1X_usingCTable_internal_body()
619 HUF_encodeSymbol(&bitC, ip[n- 4], CTable); in HUF_compress1X_usingCTable_internal_body()
631 const HUF_CElt* CTable) in HUF_compress1X_usingCTable_internal_bmi2() argument
633 return HUF_compress1X_usingCTable_internal_body(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal_bmi2()
639 const HUF_CElt* CTable) in HUF_compress1X_usingCTable_internal_default() argument
641 return HUF_compress1X_usingCTable_internal_body(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal_default()
647 const HUF_CElt* CTable, const int bmi2) in HUF_compress1X_usingCTable_internal() argument
650 return HUF_compress1X_usingCTable_internal_bmi2(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal()
652 return HUF_compress1X_usingCTable_internal_default(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal()
660 const HUF_CElt* CTable, const int bmi2) in HUF_compress1X_usingCTable_internal() argument
663 return HUF_compress1X_usingCTable_internal_body(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal()
668 …s1X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable) in HUF_compress1X_usingCTable() argument
670 return HUF_compress1X_usingCTable_internal(dst, dstSize, src, srcSize, CTable, /* bmi2 */ 0); in HUF_compress1X_usingCTable()
677 const HUF_CElt* CTable, int bmi2) in HUF_compress4X_usingCTable_internal() argument
691 …cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, CTable, bmi2) ); in HUF_compress4X_usingCTable_internal()
700 …cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, CTable, bmi2) ); in HUF_compress4X_usingCTable_internal()
709 …cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, CTable, bmi2) ); in HUF_compress4X_usingCTable_internal()
719 … HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, (size_t)(iend-ip), CTable, bmi2) ); in HUF_compress4X_usingCTable_internal()
727 …s4X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable) in HUF_compress4X_usingCTable() argument
729 return HUF_compress4X_usingCTable_internal(dst, dstSize, src, srcSize, CTable, /* bmi2 */ 0); in HUF_compress4X_usingCTable()
737 HUF_nbStreams_e nbStreams, const HUF_CElt* CTable, const int bmi2) in HUF_compressCTable_internal() argument
740 … HUF_compress1X_usingCTable_internal(op, (size_t)(oend - op), src, srcSize, CTable, bmi2) : in HUF_compressCTable_internal()
741 … HUF_compress4X_usingCTable_internal(op, (size_t)(oend - op), src, srcSize, CTable, bmi2); in HUF_compressCTable_internal()
753 HUF_CElt CTable[HUF_SYMBOLVALUE_MAX + 1]; member
818 { size_t const maxBits = HUF_buildCTable_wksp(table->CTable, table->count, in HUF_compress_internal()
824 ZSTD_memset(table->CTable + (maxSymbolValue + 1), 0, in HUF_compress_internal()
825 sizeof(table->CTable) - ((maxSymbolValue + 1) * sizeof(HUF_CElt))); in HUF_compress_internal()
829 { CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, table->CTable, maxSymbolValue, huffLog, in HUF_compress_internal()
834 … size_t const newSize = HUF_estimateCompressedSize(table->CTable, table->count, maxSymbolValue); in HUF_compress_internal()
846 ZSTD_memcpy(oldHufTable, table->CTable, sizeof(table->CTable)); /* Save new table */ in HUF_compress_internal()
850 nbStreams, table->CTable, bmi2); in HUF_compress_internal()