Home
last modified time | relevance | path

Searched refs:blockNb (Results 1 – 5 of 5) sorted by relevance

/external/zstd/zlibWrapper/examples/
Dzwrapbench.c242 U32 blockNb; in BMK_benchMem() local
244 for (blockNb=0; blockNb<nbBlocks; blockNb++) { in BMK_benchMem()
247 … blockTable[blockNb].cPtr, blockTable[blockNb].cRoom, in BMK_benchMem()
248 … blockTable[blockNb].srcPtr,blockTable[blockNb].srcSize, in BMK_benchMem()
252 … blockTable[blockNb].cPtr, blockTable[blockNb].cRoom, in BMK_benchMem()
253 … blockTable[blockNb].srcPtr,blockTable[blockNb].srcSize, cLevel); in BMK_benchMem()
256 blockTable[blockNb].cSize = rSize; in BMK_benchMem()
271 U32 blockNb; in BMK_benchMem() local
272 for (blockNb=0; blockNb<nbBlocks; blockNb++) { in BMK_benchMem()
273 rSize = ZSTD_resetCStream(zbc, blockTable[blockNb].srcSize); in BMK_benchMem()
[all …]
/external/lz4/programs/
Dbench.c258 U32 blockNb; in BMK_benchMem() local
259 for (blockNb=0; blockNb<nbBlocks; blockNb++) { in BMK_benchMem()
260 …essionFunction(blockTable[blockNb].srcPtr, blockTable[blockNb].cPtr, (int)blockTable[blockNb].srcS… in BMK_benchMem()
262 blockTable[blockNb].cSize = rSize; in BMK_benchMem()
279 … { U32 blockNb; for (blockNb=0; blockNb<nbBlocks; blockNb++) cSize += blockTable[blockNb].cSize; } in BMK_benchMem() local
299 U32 blockNb; in BMK_benchMem() local
300 for (blockNb=0; blockNb<nbBlocks; blockNb++) { in BMK_benchMem()
301 …decompress_safe(blockTable[blockNb].cPtr, blockTable[blockNb].resPtr, (int)blockTable[blockNb].cSi… in BMK_benchMem()
303 DISPLAY("LZ4_decompress_safe() failed on block %u \n", blockNb); in BMK_benchMem()
306 blockTable[blockNb].resSize = (size_t)regenSize; in BMK_benchMem()
/external/zstd/programs/
Dbenchfn.c122 unsigned loopNb, blockNb; in BMK_benchFunction() local
125 for (blockNb = 0; blockNb < p.blockCount; blockNb++) { in BMK_benchFunction()
126 size_t const res = p.benchFn(p.srcBuffers[blockNb], p.srcSizes[blockNb], in BMK_benchFunction()
127 p.dstBuffers[blockNb], p.dstCapacities[blockNb], in BMK_benchFunction()
130 if (p.blockResults != NULL) p.blockResults[blockNb] = res; in BMK_benchFunction()
134 blockNb, (unsigned)p.srcSizes[blockNb], (int)res); in BMK_benchFunction()
/external/zstd/contrib/largeNbDicts/
DlargeNbDicts.c237 for (size_t blockNb = 0; blockNb < nbSlices; blockNb++) { in shrinkSizes() local
238 assert(newSizes[blockNb] <= collection.capacities[blockNb]); in shrinkSizes()
239 collection.capacities[blockNb] = newSizes[blockNb]; in shrinkSizes()
564 for (size_t blockNb=0; blockNb < nbBlocks; blockNb++) { in compressBlocks() local
568 dstBlockBuffers.slicePtrs[blockNb], dstBlockBuffers.capacities[blockNb], in compressBlocks()
569 srcBlockBuffers.slicePtrs[blockNb], srcBlockBuffers.capacities[blockNb], in compressBlocks()
573 dstBlockBuffers.slicePtrs[blockNb], dstBlockBuffers.capacities[blockNb], in compressBlocks()
574 srcBlockBuffers.slicePtrs[blockNb], srcBlockBuffers.capacities[blockNb], in compressBlocks()
578 if (cSizes) cSizes[blockNb] = cBlockSize; in compressBlocks()
/external/zstd/tests/
Dparamgrill.c1165 U32 maxNbBlocks, blockNb = 0; in createBuffersFromMemory() local
1208 for(; pos < pos_end; blockNb++) { in createBuffersFromMemory()
1209 buff->srcPtrs[blockNb] = (const void*)((char*)srcBuffer + pos); in createBuffersFromMemory()
1210 buff->srcSizes[blockNb] = blockSize; in createBuffersFromMemory()
1214 if(fileSizes[n] > 0) { buff->srcSizes[blockNb - 1] = ((fileSizes[n] - 1) % blockSize) + 1; } in createBuffersFromMemory()
1223 for(n = 1; n < blockNb; n++) { in createBuffersFromMemory()
1233 buff->nbBlocks = blockNb; in createBuffersFromMemory()