Lines Matching refs:srcBuffer
163 static int BMK_benchMem(const void* srcBuffer, size_t srcSize, in BMK_benchMem() argument
198 { const char* srcPtr = (const char*)srcBuffer; in BMK_benchMem()
224 U64 const crcOrig = XXH64(srcBuffer, srcSize, 0); in BMK_benchMem()
334 if (((const BYTE*)srcBuffer)[u] != ((const BYTE*)resultBuffer)[u]) { in BMK_benchMem()
398 static void BMK_benchCLevel(void* srcBuffer, size_t benchedSize, in BMK_benchCLevel() argument
416 BMK_benchMem(srcBuffer, benchedSize, in BMK_benchCLevel()
461 void* srcBuffer; in BMK_benchFileTable() local
480 srcBuffer = malloc(benchedSize + !benchedSize); /* avoid alloc of zero */ in BMK_benchFileTable()
481 if (!srcBuffer) EXM_THROW(12, "not enough memory"); in BMK_benchFileTable()
484 BMK_loadFiles(srcBuffer, benchedSize, fileSizes, fileNamesTable, nbFiles); in BMK_benchFileTable()
489 BMK_benchCLevel(srcBuffer, benchedSize, in BMK_benchFileTable()
495 free(srcBuffer); in BMK_benchFileTable()
504 void* const srcBuffer = malloc(benchedSize); in BMK_syntheticTest() local
507 if (!srcBuffer) EXM_THROW(21, "not enough memory"); in BMK_syntheticTest()
510 RDG_genBuffer(srcBuffer, benchedSize, compressibility, 0.0, 0); in BMK_syntheticTest()
514 BMK_benchCLevel(srcBuffer, benchedSize, name, cLevel, cLevelLast, &benchedSize, 1); in BMK_syntheticTest()
517 free(srcBuffer); in BMK_syntheticTest()