Home
last modified time | relevance | path

Searched refs:blockTable (Results 1 – 2 of 2) sorted by relevance

/external/zstd/zlibWrapper/examples/
Dzwrapbench.c159 blockParam_t* const blockTable = (blockParam_t*) malloc(maxNbBlocks * sizeof(blockParam_t)); in BMK_benchMem() local
168 if (!compressedBuffer || !resultBuffer || !blockTable || !ctx || !dctx) in BMK_benchMem()
185 blockTable[nbBlocks].srcPtr = srcPtr; in BMK_benchMem()
186 blockTable[nbBlocks].cPtr = cPtr; in BMK_benchMem()
187 blockTable[nbBlocks].resPtr = resPtr; in BMK_benchMem()
188 blockTable[nbBlocks].srcSize = thisBlockSize; in BMK_benchMem()
189 blockTable[nbBlocks].cRoom = ZSTD_compressBound(thisBlockSize); in BMK_benchMem()
191 cPtr += blockTable[nbBlocks].cRoom; in BMK_benchMem()
247blockTable[blockNb].cPtr, blockTable[blockNb].cRoom, in BMK_benchMem()
248blockTable[blockNb].srcPtr,blockTable[blockNb].srcSize, in BMK_benchMem()
[all …]
/external/lz4/programs/
Dbench.c326 blockParam_t* const blockTable = (blockParam_t*) malloc(maxNbBlocks * sizeof(blockParam_t)); in BMK_benchMem() local
334 if (!compressedBuffer || !resultBuffer || !blockTable) in BMK_benchMem()
354 blockTable[nbBlocks].srcPtr = srcPtr; in BMK_benchMem()
355 blockTable[nbBlocks].cPtr = cPtr; in BMK_benchMem()
356 blockTable[nbBlocks].resPtr = resPtr; in BMK_benchMem()
357 blockTable[nbBlocks].srcSize = thisBlockSize; in BMK_benchMem()
358 blockTable[nbBlocks].cRoom = (size_t)LZ4_compressBound((int)thisBlockSize); in BMK_benchMem()
360 cPtr += blockTable[nbBlocks].cRoom; in BMK_benchMem()
409 blockTable[blockNb].srcPtr, blockTable[blockNb].cPtr, in BMK_benchMem()
410 (int)blockTable[blockNb].srcSize, (int)blockTable[blockNb].cRoom); in BMK_benchMem()
[all …]