• Home
  • Raw
  • Download

Lines Matching refs:srcSize

51 …st char* src, char* dst, int srcSize, int dstSize, int clevel) { (void)clevel; return LZ4_compress…  in LZ4_compress_local()  argument
142 size_t srcSize; member
152 int (*compressionFunction)(const char* src, char* dst, int srcSize, int dstSize, int cLevel);
158 static int BMK_benchMem(const void* srcBuffer, size_t srcSize, in BMK_benchMem() argument
162 …size_t const blockSize = (g_blockSize>=32 ? g_blockSize : srcSize) + (!srcSize) /* avoid div by 0 … in BMK_benchMem()
163 U32 const maxNbBlocks = (U32) ((srcSize + (blockSize-1)) / blockSize) + nbFiles; in BMK_benchMem()
165 …size_t const maxCompressedSize = LZ4_compressBound((int)srcSize) + (maxNbBlocks * 1024); /* add … in BMK_benchMem()
167 void* const resultBuffer = malloc(srcSize); in BMK_benchMem()
208 blockTable[nbBlocks].srcSize = thisBlockSize; in BMK_benchMem()
221 U64 const crcOrig = XXH64(srcBuffer, srcSize, 0); in BMK_benchMem()
246 DISPLAYLEVEL(2, "%2s-%-17.17s :%10u ->\r", marks[markNb], displayName, (U32)srcSize); in BMK_benchMem()
258 …able[blockNb].srcPtr, blockTable[blockNb].cPtr, (int)blockTable[blockNb].srcSize, (int)blockTable[… in BMK_benchMem()
273 ratio = (double)srcSize / (double)cSize; in BMK_benchMem()
276 marks[markNb], displayName, (U32)srcSize, (U32)cSize, ratio, in BMK_benchMem()
277 (double)srcSize / fastestC ); in BMK_benchMem()
282 if (!dCompleted) memset(resultBuffer, 0xD6, srcSize); /* warm result buffer */ in BMK_benchMem()
293 …Ptr, blockTable[blockNb].resPtr, (int)blockTable[blockNb].cSize, (int)blockTable[blockNb].srcSize); in BMK_benchMem()
312 marks[markNb], displayName, (U32)srcSize, (U32)cSize, ratio, in BMK_benchMem()
313 (double)srcSize / fastestC, in BMK_benchMem()
314 (double)srcSize / fastestD ); in BMK_benchMem()
317 { U64 const crcCheck = XXH64(resultBuffer, srcSize, 0); in BMK_benchMem()
321 for (u=0; u<srcSize; u++) { in BMK_benchMem()
327 if (bacc + blockTable[segNb].srcSize > u) break; in BMK_benchMem()
328 bacc += blockTable[segNb].srcSize; in BMK_benchMem()
335 if (u==srcSize-1) { /* should never happen */ in BMK_benchMem()
344 double cSpeed = (double)srcSize / fastestC; in BMK_benchMem()
345 double dSpeed = (double)srcSize / fastestD; in BMK_benchMem()