zstd/lib/common
Nick Terrell 49cf880513 Approximate FSE encoding costs for selection
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()`.
2018-05-22 14:33:22 -07:00
..
bitstream.h added traces to look at symbol costs 2018-05-09 12:00:12 -07:00
compiler.h __builtin_prefetch did probably not exist before gcc 3.1. 2018-05-18 18:40:11 +00:00
cpu.h Drop colon in asm snippet to make old versions of gcc happy. 2018-05-18 17:05:36 +00:00
entropy_common.c opt: init statistics from dictionary 2018-05-10 17:59:12 -07:00
error_private.c added error code workSpace_tooSmall 2018-02-26 15:11:50 -08:00
error_private.h updated license header 2017-09-08 00:09:23 -07:00
fse_decompress.c minor : modified ZSTD_preserveUnsortedMark() to be more vectorization friendly 2018-02-05 11:46:02 -08:00
fse.h Approximate FSE encoding costs for selection 2018-05-22 14:33:22 -07:00
huf.h pass entropy tables to optimal parser 2018-05-08 15:37:06 -07:00
mem.h fixed one UB pointer arithmetic 2017-11-17 11:40:08 -08:00
pool.c added POOL_tryAdd() 2018-01-18 14:39:51 -08:00
pool.h added POOL_tryAdd() 2018-01-18 14:39:51 -08:00
threading.c [libzstd] pthread function prefixed with ZSTD_ 2017-09-27 11:48:48 -07:00
threading.h [threading] Cast unused arguments to void 2018-03-06 18:36:40 -08:00
xxhash.c [libzstd] Fix FORCE_INLINE macro 2017-08-14 21:12:05 -07:00
xxhash.h xxhash can be included twice in any order 2017-03-01 13:29:29 -08:00
zstd_common.c merged repcode search into BT match search 2017-11-13 02:23:48 -08:00
zstd_errors.h added error code workSpace_tooSmall 2018-02-26 15:11:50 -08:00
zstd_internal.h added traces to look at symbol costs 2018-05-09 12:00:12 -07:00