Home
last modified time | relevance | path

Searched refs:loadedSize (Results 1 – 7 of 7) sorted by relevance

/external/zstd/programs/
Ddibio.c286 size_t loadedSize = (size_t) MIN ((unsigned long long)maxMem, fs.totalSizeToLoad); in DiB_trainFromFiles() local
287 void* const srcBuffer = malloc(loadedSize+NOISELENGTH); in DiB_trainFromFiles()
310 if (loadedSize < fs.totalSizeToLoad) in DiB_trainFromFiles()
311 … DISPLAYLEVEL(1, "Not enough memory; training on %u MB only...\n", (unsigned)(loadedSize >> 20)); in DiB_trainFromFiles()
317 …DiB_loadFiles(srcBuffer, &loadedSize, sampleSizes, fs.nbSamples, fileNamesTable, nbFiles, chunkSiz… in DiB_trainFromFiles()
321 …DiB_fillNoise((char*)srcBuffer + loadedSize, NOISELENGTH); /* guard band, for end of buffer cond… in DiB_trainFromFiles()
/external/zstd/contrib/largeNbDicts/
DlargeNbDicts.c393 size_t const loadedSize = (size_t)totalSizeToLoad; in createBufferCollection_fromFiles() local
394 assert(loadedSize > 0); in createBufferCollection_fromFiles()
395 void* const srcBuffer = malloc(loadedSize); in createBufferCollection_fromFiles()
403 int const errorCode = loadFiles(srcBuffer, loadedSize, in createBufferCollection_fromFiles()
414 for ( ; (pos < loadedSize) && (fileNb < nbFiles); fileNb++) { in createBufferCollection_fromFiles()
418 assert(pos == loadedSize); in createBufferCollection_fromFiles()
424 buffer.capacity = loadedSize; in createBufferCollection_fromFiles()
425 buffer.size = loadedSize; in createBufferCollection_fromFiles()
/external/zstd/lib/decompress/
Dzstd_decompress.c1829 size_t loadedSize; in ZSTD_decompressStream() local
1833 loadedSize = MIN(toLoad, (size_t)(iend-ip)); in ZSTD_decompressStream()
1838loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, (size_t)(iend-ip)); in ZSTD_decompressStream()
1840 ip += loadedSize; in ZSTD_decompressStream()
1841 zds->inPos += loadedSize; in ZSTD_decompressStream()
1842 … if (loadedSize < toLoad) { someMoreWork = 0; break; } /* not enough input, wait for more */ in ZSTD_decompressStream()
/external/zstd/lib/legacy/
Dzstd_v04.c3536 size_t loadedSize; in ZBUFF_decompressContinue() local
3538 loadedSize = ZBUFF_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFF_decompressContinue()
3539 ip += loadedSize; in ZBUFF_decompressContinue()
3540 zbc->inPos += loadedSize; in ZBUFF_decompressContinue()
3541 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFF_decompressContinue()
Dzstd_v05.c3997 size_t loadedSize; in ZBUFFv05_decompressContinue() local
3999 loadedSize = ZBUFFv05_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFFv05_decompressContinue()
4000 ip += loadedSize; in ZBUFFv05_decompressContinue()
4001 zbc->inPos += loadedSize; in ZBUFFv05_decompressContinue()
4002 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv05_decompressContinue()
Dzstd_v06.c4104 size_t loadedSize; in ZBUFFv06_decompressContinue() local
4106 loadedSize = ZBUFFv06_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv06_decompressContinue()
4107 ip += loadedSize; in ZBUFFv06_decompressContinue()
4108 zbd->inPos += loadedSize; in ZBUFFv06_decompressContinue()
4109 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv06_decompressContinue()
Dzstd_v07.c4490 size_t loadedSize; in ZBUFFv07_decompressContinue() local
4492 loadedSize = ZBUFFv07_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv07_decompressContinue()
4493 ip += loadedSize; in ZBUFFv07_decompressContinue()
4494 zbd->inPos += loadedSize; in ZBUFFv07_decompressContinue()
4495 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv07_decompressContinue()