Lines Matching refs:CTable

83     FSE_CTable CTable[FSE_CTABLE_SIZE_U32(MAX_FSE_TABLELOG_FOR_HUFF_HEADER, HUF_TABLELOG_MAX)];  member
119 …CHECK_F( FSE_buildCTable_wksp(wksp->CTable, wksp->norm, maxSymbolValue, tableLog, wksp->scratchBuf… in HUF_compressWeights()
120 …_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->CTable) ); in HUF_compressWeights()
170 const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog, in HUF_writeCTable_wksp() argument
173 HUF_CElt const* const ct = CTable + 1; in HUF_writeCTable_wksp()
211 const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog) in HUF_writeCTable() argument
214 …return HUF_writeCTable_wksp(dst, maxDstSize, CTable, maxSymbolValue, huffLog, &wksp, sizeof(wksp)); in HUF_writeCTable()
218 size_t HUF_readCTable (HUF_CElt* CTable, unsigned* maxSymbolValuePtr, const void* src, size_t srcSi… in HUF_readCTable() argument
224 HUF_CElt* const ct = CTable + 1; in HUF_readCTable()
234 CTable[0] = tableLog; in HUF_readCTable()
270 U32 HUF_getNbBitsFromCTable(HUF_CElt const* CTable, U32 symbolValue) in HUF_getNbBitsFromCTable() argument
272 const HUF_CElt* ct = CTable + 1; in HUF_getNbBitsFromCTable()
653 static void HUF_buildCTableFromTree(HUF_CElt* CTable, nodeElt const* huffNode, int nonNullRank, U32… in HUF_buildCTableFromTree() argument
655 HUF_CElt* const ct = CTable + 1; in HUF_buildCTableFromTree()
674 CTable[0] = maxNbBits; in HUF_buildCTableFromTree()
677 size_t HUF_buildCTable_wksp (HUF_CElt* CTable, const unsigned* count, U32 maxSymbolValue, U32 maxNb… in HUF_buildCTable_wksp() argument
702 HUF_buildCTableFromTree(CTable, huffNode, nonNullRank, maxSymbolValue, maxNbBits); in HUF_buildCTable_wksp()
707 size_t HUF_estimateCompressedSize(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbol… in HUF_estimateCompressedSize() argument
709 HUF_CElt const* ct = CTable + 1; in HUF_estimateCompressedSize()
718 int HUF_validateCTable(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue) { in HUF_validateCTable() argument
719 HUF_CElt const* ct = CTable + 1; in HUF_validateCTable()
892 HUF_encodeSymbol(HUF_CStream_t* bitCPtr, U32 symbol, const HUF_CElt* CTable, int idx, int fast) in HUF_encodeSymbol() argument
894 HUF_addBits(bitCPtr, CTable[symbol], idx, fast); in HUF_encodeSymbol()
965 const HUF_CElt* CTable) in HUF_compress1X_usingCTable_internal_body() argument
967 U32 const tableLog = (U32)CTable[0]; in HUF_compress1X_usingCTable_internal_body()
968 HUF_CElt const* ct = CTable + 1; in HUF_compress1X_usingCTable_internal_body()
1032 const HUF_CElt* CTable) in HUF_compress1X_usingCTable_internal_bmi2() argument
1034 return HUF_compress1X_usingCTable_internal_body(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal_bmi2()
1040 const HUF_CElt* CTable) in HUF_compress1X_usingCTable_internal_default() argument
1042 return HUF_compress1X_usingCTable_internal_body(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal_default()
1048 const HUF_CElt* CTable, const int bmi2) in HUF_compress1X_usingCTable_internal() argument
1051 return HUF_compress1X_usingCTable_internal_bmi2(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal()
1053 return HUF_compress1X_usingCTable_internal_default(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal()
1061 const HUF_CElt* CTable, const int bmi2) in HUF_compress1X_usingCTable_internal() argument
1064 return HUF_compress1X_usingCTable_internal_body(dst, dstSize, src, srcSize, CTable); in HUF_compress1X_usingCTable_internal()
1069 …s1X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable) in HUF_compress1X_usingCTable() argument
1071 return HUF_compress1X_usingCTable_bmi2(dst, dstSize, src, srcSize, CTable, /* bmi2 */ 0); in HUF_compress1X_usingCTable()
1074 …_bmi2(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable, int bmi2) in HUF_compress1X_usingCTable_bmi2() argument
1076 return HUF_compress1X_usingCTable_internal(dst, dstSize, src, srcSize, CTable, bmi2); in HUF_compress1X_usingCTable_bmi2()
1082 const HUF_CElt* CTable, int bmi2) in HUF_compress4X_usingCTable_internal() argument
1096 …cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, CTable, bmi2) ); in HUF_compress4X_usingCTable_internal()
1104 …cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, CTable, bmi2) ); in HUF_compress4X_usingCTable_internal()
1112 …cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, CTable, bmi2) ); in HUF_compress4X_usingCTable_internal()
1121 … HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, (size_t)(iend-ip), CTable, bmi2) ); in HUF_compress4X_usingCTable_internal()
1129 …s4X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable) in HUF_compress4X_usingCTable() argument
1131 return HUF_compress4X_usingCTable_bmi2(dst, dstSize, src, srcSize, CTable, /* bmi2 */ 0); in HUF_compress4X_usingCTable()
1134 …_bmi2(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable, int bmi2) in HUF_compress4X_usingCTable_bmi2() argument
1136 return HUF_compress4X_usingCTable_internal(dst, dstSize, src, srcSize, CTable, bmi2); in HUF_compress4X_usingCTable_bmi2()
1144 HUF_nbStreams_e nbStreams, const HUF_CElt* CTable, const int bmi2) in HUF_compressCTable_internal() argument
1147 … HUF_compress1X_usingCTable_internal(op, (size_t)(oend - op), src, srcSize, CTable, bmi2) : in HUF_compressCTable_internal()
1148 … HUF_compress4X_usingCTable_internal(op, (size_t)(oend - op), src, srcSize, CTable, bmi2); in HUF_compressCTable_internal()
1160 HUF_CElt CTable[HUF_CTABLE_SIZE_ST(HUF_SYMBOLVALUE_MAX)]; member
1243 { size_t const maxBits = HUF_buildCTable_wksp(table->CTable, table->count, in HUF_compress_internal()
1252 size_t const unusedSize = sizeof(table->CTable) - ctableSize * sizeof(HUF_CElt); in HUF_compress_internal()
1253 ZSTD_memset(table->CTable + ctableSize, 0, unusedSize); in HUF_compress_internal()
1257 { CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, table->CTable, maxSymbolValue, huffLog, in HUF_compress_internal()
1262 … size_t const newSize = HUF_estimateCompressedSize(table->CTable, table->count, maxSymbolValue); in HUF_compress_internal()
1274 ZSTD_memcpy(oldHufTable, table->CTable, sizeof(table->CTable)); /* Save new table */ in HUF_compress_internal()
1278 nbStreams, table->CTable, bmi2); in HUF_compress_internal()