ZSTD_OPT_DEBUG

This commit is contained in:
inikep 2016-02-05 09:21:20 +01:00
parent f967753bc2
commit 3379c5df36
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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)