diff options
author | Yann Collet <cyan@fb.com> | 2016-11-09 23:04:55 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-11-09 23:04:55 (GMT) |
commit | 1b95d60c66bfc80b77066f929263cf3aac412434 (patch) | |
tree | af18582ad19d8aff00e00dc090b7f12d60d7aff6 /programs/bench.c | |
parent | acc48a3f85e5c97a102999544248ee7e51cc419b (diff) | |
download | lz4-1b95d60c66bfc80b77066f929263cf3aac412434.zip lz4-1b95d60c66bfc80b77066f929263cf3aac412434.tar.gz lz4-1b95d60c66bfc80b77066f929263cf3aac412434.tar.bz2 |
fixed synthetic benchmark mode
slightly optimized test mode
Diffstat (limited to 'programs/bench.c')
-rw-r--r-- | programs/bench.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/programs/bench.c b/programs/bench.c index 33f5fcf..e8d89ec 100644 --- a/programs/bench.c +++ b/programs/bench.c @@ -43,7 +43,7 @@ static int LZ4_compress_local(const char* src, char* dst, int srcSize, int dstSi #include "lz4hc.h" #define COMPRESSOR1 LZ4_compress_HC #define DEFAULTCOMPRESSOR COMPRESSOR0 -#define LZ4_isError(errcode) (errcode==0) +#define LZ4_isError(errcode) (errcode==0) /* ************************************* @@ -129,8 +129,7 @@ void BMK_SetBlockSize(size_t blockSize) /* ******************************************************** * Bench functions **********************************************************/ -typedef struct -{ +typedef struct { const char* srcPtr; size_t srcSize; char* cPtr; |