diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-05-21 18:46:36 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-05-21 18:46:36 (GMT) |
commit | 4b43c2bd980a1582dc9dbf7fe7f0701c12cf5000 (patch) | |
tree | 268f0112ca1a20eabb61fd62a8d3d89dfa91b862 /programs/fullbench.c | |
parent | 914f8a9a2ca86d82a7d65d086f316b89d1700859 (diff) | |
download | lz4-4b43c2bd980a1582dc9dbf7fe7f0701c12cf5000.zip lz4-4b43c2bd980a1582dc9dbf7fe7f0701c12cf5000.tar.gz lz4-4b43c2bd980a1582dc9dbf7fe7f0701c12cf5000.tar.bz2 |
Continuous streaming mode (automatic)
Diffstat (limited to 'programs/fullbench.c')
-rwxr-xr-x | programs/fullbench.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/programs/fullbench.c b/programs/fullbench.c index cc39b15..ef42c80 100755 --- a/programs/fullbench.c +++ b/programs/fullbench.c @@ -300,6 +300,12 @@ static int local_LZ4_compress_limitedOutput_usingDict(const char* in, char* out, return LZ4_compress_limitedOutput_usingDict(&LZ4_dict, in, out, inSize, LZ4_compressBound(inSize)); } +int LZ4_compress_forceDict (LZ4_dict_t* LZ4_dict, const char* source, char* dest, int inputSize); +static int local_LZ4_compress_forceDict(const char* in, char* out, int inSize) +{ + return LZ4_compress_forceDict(&LZ4_dict, in, out, inSize); +} + static void* stateLZ4HC; static int local_LZ4_compressHC_withStateHC(const char* in, char* out, int inSize) @@ -364,7 +370,7 @@ int fullSpeedBench(char** fileNamesTable, int nbFiles) { int fileIdx=0; char* orig_buff; -# define NB_COMPRESSION_ALGORITHMS 14 +# define NB_COMPRESSION_ALGORITHMS 15 # define MINCOMPRESSIONCHAR '0' # define MAXCOMPRESSIONCHAR (MINCOMPRESSIONCHAR + NB_COMPRESSION_ALGORITHMS) double totalCTime[NB_COMPRESSION_ALGORITHMS+1] = {0}; @@ -504,6 +510,7 @@ int fullSpeedBench(char** fileNamesTable, int nbFiles) case 12: compressionFunction = local_LZ4_compressHC_limitedOutput_continue; initFunction = LZ4_createHC; compressorName = "LZ4_compressHC_limitedOutput_continue"; break; case 13: compressionFunction = local_LZ4_compress_usingDict; initFunction = local_LZ4_resetDictT; compressorName = "LZ4_compress_usingDict"; break; case 14: compressionFunction = local_LZ4_compress_limitedOutput_usingDict; initFunction = local_LZ4_resetDictT; compressorName = "LZ4_compress_limitedOutput_usingDict"; break; + case 15: compressionFunction = local_LZ4_compress_forceDict; initFunction = local_LZ4_resetDictT; compressorName = "LZ4_compress_forceDict"; break; default : DISPLAY("ERROR ! Bad algorithm Id !! \n"); free(chunkP); return 1; } |