Lines Matching refs:srcSize
52 static int LZ4_compress_local(const char* src, char* dst, int srcSize, int dstSize, int clevel) { in LZ4_compress_local() argument
54 return LZ4_compress_fast(src, dst, srcSize, dstSize, acceleration); in LZ4_compress_local()
147 size_t srcSize; member
157 int (*compressionFunction)(const char* src, char* dst, int srcSize, int dstSize, int cLevel);
163 static int BMK_benchMem(const void* srcBuffer, size_t srcSize, in BMK_benchMem() argument
167 …size_t const blockSize = (g_blockSize>=32 ? g_blockSize : srcSize) + (!srcSize) /* avoid div by 0 … in BMK_benchMem()
168 U32 const maxNbBlocks = (U32) ((srcSize + (blockSize-1)) / blockSize) + nbFiles; in BMK_benchMem()
170 …size_t const maxCompressedSize = LZ4_compressBound((int)srcSize) + (maxNbBlocks * 1024); /* add … in BMK_benchMem()
172 void* const resultBuffer = malloc(srcSize); in BMK_benchMem()
211 blockTable[nbBlocks].srcSize = thisBlockSize; in BMK_benchMem()
224 U64 const crcOrig = XXH64(srcBuffer, srcSize, 0); in BMK_benchMem()
227 …U32 nbCompressionLoops = (U32)((5 MB) / (srcSize+1)) + 1; /* conservative initial compression spe… in BMK_benchMem()
228 …U32 nbDecodeLoops = (U32)((200 MB) / (srcSize+1)) + 1; /* conservative initial decode speed estim… in BMK_benchMem()
248 DISPLAYLEVEL(2, "%2s-%-17.17s :%10u ->\r", marks[markNb], displayName, (U32)srcSize); in BMK_benchMem()
260 …able[blockNb].srcPtr, blockTable[blockNb].cPtr, (int)blockTable[blockNb].srcSize, (int)blockTable[… in BMK_benchMem()
281 ratio = (double)srcSize / (double)cSize; in BMK_benchMem()
284 marks[markNb], displayName, (U32)srcSize, (U32)cSize, ratio, in BMK_benchMem()
285 ((double)srcSize / fastestC) * 1000 ); in BMK_benchMem()
290 if (!dCompleted) memset(resultBuffer, 0xD6, srcSize); /* warm result buffer */ in BMK_benchMem()
301 …Ptr, blockTable[blockNb].resPtr, (int)blockTable[blockNb].cSize, (int)blockTable[blockNb].srcSize); in BMK_benchMem()
324 marks[markNb], displayName, (U32)srcSize, (U32)cSize, ratio, in BMK_benchMem()
325 ((double)srcSize / fastestC) * 1000, in BMK_benchMem()
326 ((double)srcSize / fastestD) * 1000); in BMK_benchMem()
329 { U64 const crcCheck = XXH64(resultBuffer, srcSize, 0); in BMK_benchMem()
333 for (u=0; u<srcSize; u++) { in BMK_benchMem()
339 if (bacc + blockTable[segNb].srcSize > u) break; in BMK_benchMem()
340 bacc += blockTable[segNb].srcSize; in BMK_benchMem()
347 if (u==srcSize-1) { /* should never happen */ in BMK_benchMem()
356 double const cSpeed = ((double)srcSize / fastestC) * 1000; in BMK_benchMem()
357 double const dSpeed = ((double)srcSize / fastestD) * 1000; in BMK_benchMem()