Yann Collet
100d8ad6be
lib/compress: created ZSTD_LLcode() and ZSTD_MLcode()
...
transform length into code.
Since transformation is needed in several places throughout the code,
better write the logic in one place.
2017-11-08 12:43:05 -08:00
Yann Collet
5aa0352742
zstd_opt: simplified ZSTD_getPrice() and ZSTD_updatePrice() interface
...
ZSTD_getPrice() and ZSTD_updatePrice() accept normal matchlength as argument
instead of matchlength-MINMATCH,
which makes them easier / more logical to use and read.
Conversion is simply done internally.
2017-11-08 12:23:27 -08:00
Yann Collet
4191efa993
zstd_opt: ensure sufficient_len < ZSTD_OPT_NUM to simplify some tests
2017-11-08 11:24:00 -08:00
Yann Collet
ee441d5d2b
renamed zstd_compress.h into zstd_compress_internal.h
...
to emphasize the fact that all definitions it contains
must remain private, accross lib/compress modules.
2017-11-07 16:15:23 -08:00