zstd/lib/common
Yann Collet 32dfae6f98 fixed Multi-threaded compression
MT compression generates a single frame.
Multi-threading operates by breaking the frames into independent sections.
But from a decoder perspective, there is no difference :
it's just a suite of blocks.

Problem is, decoder preserves repCodes from previous block to start decoding next block.
This is also valid between sections, since they are no different than changing block.

Previous version would incorrectly initialize repcodes to their default value at the beginning of each section.
When using them, there was a mismatch between encoder (default values) and decoder (values from previous block).

This change ensures that repcodes won't be used at the beginning of a new section.
It works by setting them to 0.
This only works with regular (single segment) variants : extDict variants will fail !
Fortunately, sections beyond the 1st one belong to this category.

To be checked : btopt strategy.
This change was only validated from fast to btlazy2 strategies.
2017-01-19 10:32:55 -08:00
..
bitstream.h minor BMI version check 2016-12-13 15:21:06 +01:00
entropy_common.c reduced table sizes for HUF_readDTableX4 2016-12-01 18:24:59 -08:00
error_private.c added ZSTD_error_frameParameter_windowTooLarge (#403) 2016-10-12 17:29:24 -07:00
error_private.h created error_private.c, so that a single list of error strings get included 2016-10-11 17:24:50 -07:00
fse_decompress.c introduced FSE_decompress_wksp(), to use less stack space 2016-11-30 12:36:45 -08:00
fse.h introduced ext_wksp variants of count to reduce stack memory usage 2016-12-01 16:13:35 -08:00
huf.h fixed Doxygen trailing comment 2016-12-02 16:13:41 +01:00
mem.h added ZSTD_createDDict_byReference() body 2016-12-21 19:25:15 +01:00
pool.c Fix pool for threading.h 2016-12-31 19:10:47 -05:00
pool.h Fix pool for threading.h 2016-12-31 19:10:47 -05:00
threading.c Add threading.h condition variables 2016-12-31 19:10:29 -05:00
threading.h fixed linux warnings 2017-01-02 01:11:55 +01:00
xxhash.c fixing FORCE_INLINE for older compilers (#330) 2016-09-02 11:44:21 -07:00
xxhash.h added : xxhash namespace enforced from xxhash.h. 2016-08-10 08:16:51 +02:00
zstd_common.c Export all API functions 2016-12-16 13:27:30 -08:00
zstd_errors.h Export all API functions 2016-12-16 13:27:30 -08:00
zstd_internal.h fixed Multi-threaded compression 2017-01-19 10:32:55 -08:00