Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 14 of 14) sorted by relevance

/f-stack/freebsd/contrib/zstd/examples/
H A Dcommon.h180 static size_t loadFile_orDie(const char* fileName, void* buffer, size_t bufferSize) in loadFile_orDie() argument
183 CHECK(fileSize <= bufferSize, "File too large!"); in loadFile_orDie()
204 static void* mallocAndLoadFile_orDie(const char* fileName, size_t* bufferSize) { in mallocAndLoadFile_orDie() argument
206 *bufferSize = fileSize; in mallocAndLoadFile_orDie()
207 void* const buffer = malloc_orDie(*bufferSize); in mallocAndLoadFile_orDie()
208 loadFile_orDie(fileName, buffer, *bufferSize); in mallocAndLoadFile_orDie()
/f-stack/freebsd/contrib/zstd/lib/dictBuilder/
H A Dzdict.c524 int* const suffix0 = (int*)malloc((bufferSize+2)*sizeof(*suffix0)); in ZDICT_trainBuffer_legacy()
526 U32* reverseSuffix = (U32*)malloc((bufferSize)*sizeof(*reverseSuffix)); in ZDICT_trainBuffer_legacy()
527 …BYTE* doneMarks = (BYTE*)malloc((bufferSize+16)*sizeof(*doneMarks)); /* +16 for overflow securit… in ZDICT_trainBuffer_legacy()
546 memset(doneMarks, 0, bufferSize+16); in ZDICT_trainBuffer_legacy()
550 while (bufferSize > ZDICT_MAX_SAMPLES_SIZE) bufferSize -= fileSizes[--nbFiles]; in ZDICT_trainBuffer_legacy()
553 …DISPLAYLEVEL(2, "sorting %u files of total size %u MB ...\n", nbFiles, (unsigned)(bufferSize>>20)); in ZDICT_trainBuffer_legacy()
557 suffix[bufferSize] = (int)bufferSize; /* leads into noise */ in ZDICT_trainBuffer_legacy()
558 suffix0[0] = (int)bufferSize; /* leads into noise */ in ZDICT_trainBuffer_legacy()
561 for (pos=0; pos < bufferSize; pos++) in ZDICT_trainBuffer_legacy()
573 { U32 cursor; for (cursor=0; cursor < bufferSize; ) { in ZDICT_trainBuffer_legacy()
[all …]
/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dfse_compress.c292 size_t FSE_writeNCount (void* buffer, size_t bufferSize, in FSE_writeNCount() argument
298 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount()
299 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
301 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
H A Dzstdmt_compress.c98 size_t bufferSize; member
115 bufPool->bufferSize = 64 KB; in ZSTDMT_createBufferPool()
158 bufPool->bufferSize = bSize; in ZSTDMT_setBufferSize()
171 size_t const bSize = srcBufPool->bufferSize; /* forward parameters */ in ZSTDMT_expandBufferPool()
187 size_t const bSize = bufPool->bufferSize; in ZSTDMT_getBuffer()
188 DEBUGLOG(5, "ZSTDMT_getBuffer: bSize = %u", (U32)bufPool->bufferSize); in ZSTDMT_getBuffer()
229 size_t const bSize = bufPool->bufferSize; in ZSTDMT_resizeBuffer()
294 if (seqPool->bufferSize == 0) { in ZSTDMT_getSeq()
H A Dzstd_compress.c144 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() local
146 return bufferSize + cdictSize; in ZSTD_sizeof_localDict()
/f-stack/freebsd/contrib/ncsw/Peripherals/FM/Port/
H A Dfm_port_im.c247 …p_FmPort->im.rxPool.bufferSize = p_FmPortParams->specificParams.imRxTxParams.rxPoolParams.buf… in FmPortConfigIM()
259 if (p_FmPort->im.rxPool.bufferSize & p_FmPort->im.mrblr) in FmPortConfigIM()
263 if (p_FmPort->im.mrblr != p_FmPort->im.rxPool.bufferSize) in FmPortConfigIM()
/f-stack/freebsd/contrib/ncsw/inc/
H A Dncsw_ext.h373 uint16_t bufferSize; /**< Buffer size (in bytes) */ member
/f-stack/freebsd/contrib/zstd/programs/
H A Dbenchzstd.c748 static int BMK_loadFiles(void* buffer, size_t bufferSize, in BMK_loadFiles() argument
770 …if (fileSize > bufferSize-pos) fileSize = bufferSize-pos, nbFiles=n; /* buffer too small - stop … in BMK_loadFiles()
H A Dfileio.c1926 const void* buffer, size_t bufferSize, in FIO_fwriteSparse() argument
1931 size_t bufferSizeT = bufferSize / sizeof(size_t); in FIO_fwriteSparse()
1939 size_t const sizeCheck = fwrite(buffer, 1, bufferSize, file); in FIO_fwriteSparse()
1940 if (sizeCheck != bufferSize) in FIO_fwriteSparse()
1980 if (bufferSize & maskT) { in FIO_fwriteSparse()
1984 const char* const restEnd = (const char*)buffer + bufferSize; in FIO_fwriteSparse()
2024 void* buffer, size_t bufferSize, in FIO_passThrough() argument
2027 size_t const blockSize = MIN(64 KB, bufferSize); in FIO_passThrough()
/f-stack/freebsd/contrib/ncsw/Peripherals/BM/
H A Dbm_pool.c211 p_BmPoolParam->bufferPoolInfo.bufferSize)), E_INVALID_STATE, NULL); in BM_POOL_Config()
531 return p_BmPool->bufferPoolInfo.bufferSize; in BM_POOL_GetBufferSize()
/f-stack/freebsd/contrib/zstd/zlibWrapper/examples/
H A Dzwrapbench.c677 static void BMK_loadFiles(void* buffer, size_t bufferSize, in BMK_loadFiles() argument
699 …if (fileSize > bufferSize-pos) fileSize = bufferSize-pos, nbFiles=n; /* buffer too small - stop … in BMK_loadFiles()
/f-stack/freebsd/contrib/zstd/lib/common/
H A Dfse.h160 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
/f-stack/freebsd/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c1781 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream() local
1790 bufferSize > zds->staticSize - sizeof(ZSTD_DCtx), in ZSTD_decompressStream()
1796 zds->inBuff = (char*)ZSTD_customMalloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c991 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
7767 size_t FSE_writeNCount (void* buffer, size_t bufferSize, in FSE_writeNCount() argument
7773 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount()
7774 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
7776 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
13215 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() local
13217 return bufferSize + cdictSize; in ZSTD_sizeof_localDict()
26242 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream() local
26251 bufferSize > zds->staticSize - sizeof(ZSTD_DCtx), in ZSTD_decompressStream()
26257 zds->inBuff = (char*)ZSTD_malloc(bufferSize, zds->customMem); in ZSTD_decompressStream()