Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dhuf_compress.c63 …atic size_t HUF_compressWeights (void* dst, size_t dstSize, const void* weightTable, size_t wtSize) in HUF_compressWeights() argument
79 if (wtSize <= 1) return 0; /* Not compressible */ in HUF_compressWeights()
82 …{ unsigned const maxCount = HIST_count_simple(count, &maxSymbolValue, weightTable, wtSize); /*… in HUF_compressWeights()
83 if (maxCount == wtSize) return 1; /* only a single symbol in src : rle */ in HUF_compressWeights()
87 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights()
88 CHECK_F( FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue) ); in HUF_compressWeights()
97 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, CTable… in HUF_compressWeights()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dhuf_compress.c92 static size_t HUF_compressWeights(void* dst, size_t dstSize, const void* weightTable, size_t wtSize in HUF_compressWeights() argument
105 if (wtSize <= 1) return 0; /* Not compressible */ in HUF_compressWeights()
108 … maxCount = HIST_count_simple(wksp->count, &maxSymbolValue, weightTable, wtSize); /* never fails… in HUF_compressWeights()
109 if (maxCount == wtSize) return 1; /* only a single symbol in src : rle */ in HUF_compressWeights()
113 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights()
114 …CHECK_F( FSE_normalizeCount(wksp->norm, tableLog, wksp->count, wtSize, maxSymbolValue, /* useLowPr… in HUF_compressWeights()
123 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->… in HUF_compressWeights()