]> git.ipfire.org Git - thirdparty/zstd.git/commit
fix corner case when requiring cost of an FSE symbol
authorYann Collet <cyan@fb.com>
Thu, 24 May 2018 20:59:11 +0000 (13:59 -0700)
committerYann Collet <cyan@fb.com>
Thu, 24 May 2018 20:59:11 +0000 (13:59 -0700)
commit776128d16f8020489da132f34bcd41346c74ea4a
tree0bd3ba7faf83d47cf7b1cede9d1b72b803c7d4be
parent27af35c110c3e01b9a3c0b6de03368d480eb0a29
fix corner case when requiring cost of an FSE symbol

ensure that, when frequency[symbol]==0,
result is (tableLog + 1) bits
with both upper-bit and fractional-bit estimates.

Also : enable BIT_DEBUG in /tests
lib/common/fse.h
lib/compress/fse_compress.c
tests/Makefile