ZSTD_OPT_DEBUG
This commit is contained in:
parent
f967753bc2
commit
3379c5df36
@ -2442,7 +2442,9 @@ ZSTD_parameters ZSTD_getParams(int compressionLevel, U64 srcSizeHint)
|
||||
int tableID = ((srcSizeHint-1) <= 256 KB) + ((srcSizeHint-1) <= 128 KB) + ((srcSizeHint-1) <= 16 KB); /* intentional underflow for srcSizeHint == 0 */
|
||||
if (compressionLevel<=0) compressionLevel = 1;
|
||||
if (compressionLevel > ZSTD_MAX_CLEVEL) compressionLevel = ZSTD_MAX_CLEVEL;
|
||||
tableID=0;
|
||||
#if ZSTD_OPT_DEBUG >= 1
|
||||
tableID=0;
|
||||
#endif
|
||||
result = ZSTD_defaultParameters[tableID][compressionLevel];
|
||||
result.srcSize = srcSizeHint;
|
||||
return result;
|
||||
|
@ -79,7 +79,7 @@ static const size_t ZSTD_frameHeaderSize_min = 5;
|
||||
#define IS_RAW 2
|
||||
#define IS_RLE 3
|
||||
|
||||
#define MINMATCH 3
|
||||
#define MINMATCH 4
|
||||
#define REPCODE_STARTVALUE 1
|
||||
|
||||
#define Litbits 8
|
||||
|
@ -19,7 +19,7 @@ typedef struct
|
||||
} ZSTD_optimal_t;
|
||||
|
||||
|
||||
#define ZSTD_OPT_DEBUG 0 // 5 = check encoded sequences
|
||||
#define ZSTD_OPT_DEBUG 0 // 1 = tableID=0; 5 = check encoded sequences
|
||||
|
||||
#if 1
|
||||
#define ZSTD_LOG_PARSER(fmt, args...) ;// printf(fmt, ##args)
|
||||
|
Loading…
Reference in New Issue
Block a user