]> git.ipfire.org Git - thirdparty/zstd.git/commit
change ZSTD_storeSeq() interface to accept matchLength
authorYann Collet <cyan@fb.com>
Thu, 23 Dec 2021 20:03:33 +0000 (12:03 -0800)
committerYann Collet <cyan@fb.com>
Thu, 23 Dec 2021 20:03:33 +0000 (12:03 -0800)
commitb77fcac61fadf665f7522dd0c2e44b373eb7d57d
tree91fe692b13491d66d961a9b0a04b955b790ac219
parenteebf24bd2a5b1a6321e9427ba56d0b0d19eb26c3
change ZSTD_storeSeq() interface to accept matchLength

instead of mlBase.

This removes the need to do `- MINMATCH` at every call site.

The new interface contract is checked with an `assert()`.
lib/compress/zstd_compress.c
lib/compress/zstd_compress_internal.h
lib/compress/zstd_double_fast.c
lib/compress/zstd_fast.c
lib/compress/zstd_lazy.c
lib/compress/zstd_ldm.c
lib/compress/zstd_opt.c
tests/decodecorpus.c