]> git.ipfire.org Git - thirdparty/zstd.git/commit
refactor HUF_compress_internal for clarity
authorYann Collet <cyan@fb.com>
Fri, 26 Oct 2018 20:21:37 +0000 (13:21 -0700)
committerYann Collet <cyan@fb.com>
Fri, 26 Oct 2018 20:21:37 +0000 (13:21 -0700)
commit7b74405150643f8002ced136d56c77977fef3d07
tree692ab9284809e2b936f43f8854828092305b7585
parente26126cacaa9ac6f1db4021ac3d32f4ac8387c50
refactor HUF_compress_internal for clarity

changed workspace parameter convention
to always provide workspaceSize,
so that size can be explicitly checked.

Also, use more enum to make the meaning of some parameters more explicit.
lib/compress/fse_compress.c
lib/compress/hist.c
lib/compress/hist.h
lib/compress/huf_compress.c
lib/compress/zstd_compress.c
tests/decodecorpus.c