49cf880513
Estimate the cost for using FSE modes `set_basic`, `set_compressed`, and `set_repeat`, and select the one with the lowest cost. * The cost of `set_basic` is computed using the cross-entropy cost function `ZSTD_crossEntropyCost()`, using the normalized default count and the count. * The cost of `set_repeat` is computed using `FSE_bitCost()`. We check the previous table to see if it is able to represent the distribution. * The cost of `set_compressed` is computed with the entropy cost function `ZSTD_entropyCost()`, together with the cost of writing the normalized count `ZSTD_NCountCost()`. |
||
---|---|---|
.. | ||
bitstream.h | ||
compiler.h | ||
cpu.h | ||
entropy_common.c | ||
error_private.c | ||
error_private.h | ||
fse_decompress.c | ||
fse.h | ||
huf.h | ||
mem.h | ||
pool.c | ||
pool.h | ||
threading.c | ||
threading.h | ||
xxhash.c | ||
xxhash.h | ||
zstd_common.c | ||
zstd_errors.h | ||
zstd_internal.h |