Home
last modified time | relevance | path

Searched refs:wtSize (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dhuf_compress.c62 …atic size_t HUF_compressWeights (void* dst, size_t dstSize, const void* weightTable, size_t wtSize) in HUF_compressWeights() argument
78 if (wtSize <= 1) return 0; /* Not compressible */ in HUF_compressWeights()
81 …{ unsigned const maxCount = HIST_count_simple(count, &maxSymbolValue, weightTable, wtSize); /*… in HUF_compressWeights()
82 if (maxCount == wtSize) return 1; /* only a single symbol in src : rle */ in HUF_compressWeights()
86 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights()
87 …CHECK_F( FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue, /* useLowProbCount */ 0… in HUF_compressWeights()
96 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, CTable… in HUF_compressWeights()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c8427 …atic size_t HUF_compressWeights (void* dst, size_t dstSize, const void* weightTable, size_t wtSize) in HUF_compressWeights() argument
8443 if (wtSize <= 1) return 0; /* Not compressible */ in HUF_compressWeights()
8446 …{ unsigned const maxCount = HIST_count_simple(count, &maxSymbolValue, weightTable, wtSize); /*… in HUF_compressWeights()
8447 if (maxCount == wtSize) return 1; /* only a single symbol in src : rle */ in HUF_compressWeights()
8451 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights()
8452 CHECK_F( FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue) ); in HUF_compressWeights()
8461 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, CTable… in HUF_compressWeights()