zstd/lib/compress
Nick Terrell d5c688e8ae Fix ZSTD_adjustCParams_internal() to handle dictionary logic
Pass in the `ZSTD_cParamMode_e` to select how we define our cparams.
Based on the mode we either take the `dictSize` into account or we set
it to `0`. See the documentation for `ZSTD_cParamMode_e`.

Some of the modes currently share the same behavior. But they have
distinct modes because they are drastically different cases. E.g.
compression + reprocessing the dictionary and creating a cdict.

Additionally, when downsizing the hashLog and chainLog take the
(adjusted) dictionary size into account, since the size of the
dictionary gets added onto the window size.

Adds a simple test to ensure that we aren't downsizing too far.
2020-10-12 12:50:04 -07:00
..
fse_compress.c [lib] Add ZSTD_NO_UNUSED_FUNCTIONS macro to hide unused functions 2020-09-09 14:35:39 -07:00
hist.c [lib] Add ZSTD_NO_UNUSED_FUNCTIONS macro to hide unused functions 2020-09-09 14:35:39 -07:00
hist.h Move standard includes to zstd_deps.h 2020-08-26 12:25:08 -07:00
huf_compress.c [lib] Add ZSTD_NO_UNUSED_FUNCTIONS macro to hide unused functions 2020-09-09 14:35:39 -07:00
zstd_compress_internal.h Fix ZSTD_adjustCParams_internal() to handle dictionary logic 2020-10-12 12:50:04 -07:00
zstd_compress_literals.c ZSTD_ prefix mem{cpy,move,set},malloc,calloc,free 2020-08-26 12:26:03 -07:00
zstd_compress_literals.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
zstd_compress_sequences.c [lib] Reduce zstd stack usage by 1KB 2020-09-09 14:35:39 -07:00
zstd_compress_sequences.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_compress_superblock.c [superblock] Reduce stack usage by correctly sizing header buffers 2020-09-24 19:42:04 -07:00
zstd_compress_superblock.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_compress.c Fix ZSTD_adjustCParams_internal() to handle dictionary logic 2020-10-12 12:50:04 -07:00
zstd_cwksp.h Allow user to override ASAN/MSAN detection 2020-09-24 19:42:04 -07:00
zstd_double_fast.c [lib] s/current/curr because it collides with Linux Kernel macro 2020-09-09 14:35:39 -07:00
zstd_double_fast.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_fast.c [lib] s/current/curr because it collides with Linux Kernel macro 2020-09-09 14:35:39 -07:00
zstd_fast.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_lazy.c Document searchFuncs Table 2020-09-10 22:10:02 -04:00
zstd_lazy.h Rename and Move DD_BLOG Constant to ZSTD_LAZY_DDSS_BUCKET_LOG 2020-09-10 18:51:52 -04:00
zstd_ldm.c [lib] s/current/curr because it collides with Linux Kernel macro 2020-09-09 14:35:39 -07:00
zstd_ldm.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_opt.c [lib] s/current/curr because it collides with Linux Kernel macro 2020-09-09 14:35:39 -07:00
zstd_opt.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
zstdmt_compress.c Fix ZSTD_adjustCParams_internal() to handle dictionary logic 2020-10-12 12:50:04 -07:00
zstdmt_compress.h Allow external creation of POOLs that can be shared. 2020-10-07 12:44:33 +02:00