]> git.ipfire.org Git - thirdparty/zstd.git/commit
zstd_opt: simplified ZSTD_getPrice() and ZSTD_updatePrice() interface
authorYann Collet <cyan@fb.com>
Wed, 8 Nov 2017 20:20:07 +0000 (12:20 -0800)
committerYann Collet <cyan@fb.com>
Wed, 8 Nov 2017 20:23:27 +0000 (12:23 -0800)
commit5aa0352742ca9ad33b8aba09cb95d6574d4f959d
treec99b64c9fb7e5193812460759e0d8892b15b8abb
parentbf730e20440766fa945b84431084701e004e106e
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.
lib/compress/zstd_compress_internal.h
lib/compress/zstd_opt.c