Changed ZSTD_adjustCParams() prototype

`ZSTD_adjustCParams()` is now automatically invoked at the end of `ZSTD_getCParams()`
This commit is contained in:
Yann Collet
2016-06-01 18:45:34 +02:00
parent 83c3f4427c
commit 70d1301d6e
5 changed files with 17 additions and 21 deletions
-2
View File
@@ -220,7 +220,6 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize,
{ ZSTD_parameters params;
params.cParams = ZSTD_getCParams(cLevel, blockSize, dictBufferSize);
params.fParams.contentSizeFlag = 1;
ZSTD_adjustCParams(&params.cParams, blockSize, dictBufferSize);
{ size_t const initResult = ZSTD_compressBegin_advanced(refCtx, dictBuffer, dictBufferSize, params, blockSize);
if (ZSTD_isError(initResult)) break;
} }
@@ -505,4 +504,3 @@ int BMK_benchFiles(const char** fileNamesTable, unsigned nbFiles,
BMK_benchFileTable(fileNamesTable, nbFiles, dictFileName, cLevel, cLevelLast);
return 0;
}