Home
last modified time | relevance | path

Searched refs:rSize (Results 1 – 15 of 15) sorted by relevance

/freebsd/sys/contrib/zstd/examples/
H A Dsimple_decompression.c26 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize); in decompress() local
27 CHECK(rSize != ZSTD_CONTENTSIZE_ERROR, "%s: not compressed by zstd!", fname); in decompress()
28 CHECK(rSize != ZSTD_CONTENTSIZE_UNKNOWN, "%s: original size unknown!", fname); in decompress()
30 void* const rBuff = malloc_orDie((size_t)rSize); in decompress()
37 size_t const dSize = ZSTD_decompress(rBuff, rSize, cBuff, cSize); in decompress()
40 CHECK(dSize == rSize, "Impossible because zstd will check this condition!"); in decompress()
43 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize); in decompress()
H A Ddictionary_decompression.c40 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize); in decompress() local
41 CHECK(rSize != ZSTD_CONTENTSIZE_ERROR, "%s: not compressed by zstd!", fname); in decompress()
42 CHECK(rSize != ZSTD_CONTENTSIZE_UNKNOWN, "%s: original size unknown!", fname); in decompress()
43 void* const rBuff = malloc_orDie((size_t)rSize); in decompress()
64 size_t const dSize = ZSTD_decompress_usingDDict(dctx, rBuff, rSize, cBuff, cSize, ddict); in decompress()
67 CHECK(dSize == rSize, "Impossible because zstd will check this condition!"); in decompress()
70 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize); in decompress()
/freebsd/sys/contrib/zstd/zlibWrapper/examples/
H A Dzwrapbench.c243 size_t rSize; in BMK_benchMem() local
255 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_compress_usingCDict() failed : %s", ZSTD_getErrorName( in BMK_benchMem()
266 size_t rSize; in BMK_benchMem() local
287 … if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_CCtx_reset() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
289 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_CCtx_setPledgedSrcSize() failed : %s", ZSTD_getErrorNa… in BMK_benchMem()
297 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_compressStream() failed : %s", ZSTD_getErrorName(rSize in BMK_benchMem()
299 … if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_endStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
429 size_t rSize; in BMK_benchMem() local
432 … if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_initDStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
437 … if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_DCtx_reset() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c953 { size_t rSize; in ZSTD_decompressContinue() local
963 rSize = ZSTD_copyRawBlock(dst, dstCapacity, src, srcSize); in ZSTD_decompressContinue()
964 FORWARD_IF_ERROR(rSize, "ZSTD_copyRawBlock failed"); in ZSTD_decompressContinue()
965 assert(rSize == srcSize); in ZSTD_decompressContinue()
966 dctx->expected -= rSize; in ZSTD_decompressContinue()
976 FORWARD_IF_ERROR(rSize, ""); in ZSTD_decompressContinue()
979 dctx->decodedSize += rSize; in ZSTD_decompressContinue()
980 if (dctx->fParams.checksumFlag) XXH64_update(&dctx->xxhState, dst, rSize); in ZSTD_decompressContinue()
981 dctx->previousDstEnd = (char*)dst + rSize; in ZSTD_decompressContinue()
985 return rSize; in ZSTD_decompressContinue()
[all …]
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c1226 { size_t rSize; in ZSTD_decompressContinue() local
1236 rSize = ZSTD_copyRawBlock(dst, dstCapacity, src, srcSize); in ZSTD_decompressContinue()
1237 FORWARD_IF_ERROR(rSize, "ZSTD_copyRawBlock failed"); in ZSTD_decompressContinue()
1238 assert(rSize == srcSize); in ZSTD_decompressContinue()
1239 dctx->expected -= rSize; in ZSTD_decompressContinue()
1249 FORWARD_IF_ERROR(rSize, ""); in ZSTD_decompressContinue()
1252 dctx->decodedSize += rSize; in ZSTD_decompressContinue()
1253 if (dctx->validateChecksum) XXH64_update(&dctx->xxhState, dst, rSize); in ZSTD_decompressContinue()
1254 dctx->previousDstEnd = (char*)dst + rSize; in ZSTD_decompressContinue()
1258 return rSize; in ZSTD_decompressContinue()
[all …]
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c2134 size_t rSize; in ZSTDv01_decompressContinue() local
2138 rSize = ZSTD_decompressBlock(ctx, dst, maxDstSize, src, srcSize); in ZSTDv01_decompressContinue()
2141 rSize = ZSTD_copyUncompressedBlock(dst, maxDstSize, src, srcSize); in ZSTDv01_decompressContinue()
2147 rSize = 0; in ZSTDv01_decompressContinue()
2154 ctx->previousDstEnd = (void*)( ((char*)dst) + rSize); in ZSTDv01_decompressContinue()
2155 return rSize; in ZSTDv01_decompressContinue()
H A Dzstd_v03.c3097 size_t rSize; in ZSTD_decompressContinue() local
3101 rSize = ZSTD_decompressBlock(ctx, dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3104 rSize = ZSTD_copyUncompressedBlock(dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3110 rSize = 0; in ZSTD_decompressContinue()
3117 ctx->previousDstEnd = (void*)( ((char*)dst) + rSize); in ZSTD_decompressContinue()
3118 return rSize; in ZSTD_decompressContinue()
H A Dzstd_v07.c4042 { size_t rSize; in ZSTDv07_decompressContinue() local
4046 rSize = ZSTDv07_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize); in ZSTDv07_decompressContinue()
4049 rSize = ZSTDv07_copyRawBlock(dst, dstCapacity, src, srcSize); in ZSTDv07_decompressContinue()
4055 rSize = 0; in ZSTDv07_decompressContinue()
4062 dctx->previousDstEnd = (char*)dst + rSize; in ZSTDv07_decompressContinue()
4063 if (ZSTDv07_isError(rSize)) return rSize; in ZSTDv07_decompressContinue()
4064 if (dctx->fParams.checksumFlag) XXH64_update(&dctx->xxhState, dst, rSize); in ZSTDv07_decompressContinue()
4065 return rSize; in ZSTDv07_decompressContinue()
H A Dzstd_v02.c3455 size_t rSize; in ZSTD_decompressContinue() local
3459 rSize = ZSTD_decompressBlock(ctx, dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3462 rSize = ZSTD_copyUncompressedBlock(dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3468 rSize = 0; in ZSTD_decompressContinue()
3475 ctx->previousDstEnd = (void*)( ((char*)dst) + rSize); in ZSTD_decompressContinue()
3476 return rSize; in ZSTD_decompressContinue()
H A Dzstd_v04.c3243 size_t rSize; in ZSTD_decompressContinue() local
3247 rSize = ZSTD_decompressBlock_internal(ctx, dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3250 rSize = ZSTD_copyRawBlock(dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3256 rSize = 0; in ZSTD_decompressContinue()
3263 ctx->previousDstEnd = (char*)dst + rSize; in ZSTD_decompressContinue()
3264 return rSize; in ZSTD_decompressContinue()
H A Dzstd_v05.c3629 size_t rSize; in ZSTDv05_decompressContinue() local
3633 rSize = ZSTDv05_decompressBlock_internal(dctx, dst, maxDstSize, src, srcSize); in ZSTDv05_decompressContinue()
3636 rSize = ZSTDv05_copyRawBlock(dst, maxDstSize, src, srcSize); in ZSTDv05_decompressContinue()
3642 rSize = 0; in ZSTDv05_decompressContinue()
3649 dctx->previousDstEnd = (char*)dst + rSize; in ZSTDv05_decompressContinue()
3650 return rSize; in ZSTDv05_decompressContinue()
H A Dzstd_v06.c3770 { size_t rSize; in ZSTDv06_decompressContinue() local
3774 rSize = ZSTDv06_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize); in ZSTDv06_decompressContinue()
3777 rSize = ZSTDv06_copyRawBlock(dst, dstCapacity, src, srcSize); in ZSTDv06_decompressContinue()
3783 rSize = 0; in ZSTDv06_decompressContinue()
3790 dctx->previousDstEnd = (char*)dst + rSize; in ZSTDv06_decompressContinue()
3791 return rSize; in ZSTDv06_decompressContinue()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c4234 …U64 const rSize = unknown && dictSize == 0 ? ZSTD_CONTENTSIZE_UNKNOWN : srcSizeHint+dictSize+added… in ZSTD_getCParams_internal() local
4235 U32 const tableID = (rSize <= 256 KB) + (rSize <= 128 KB) + (rSize <= 16 KB); in ZSTD_getCParams_internal()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c6274 U64 const rSize = ZSTD_getCParamRowSize(srcSizeHint, dictSize, mode); in ZSTD_getCParams_internal() local
6275 U32 const tableID = (rSize <= 256 KB) + (rSize <= 128 KB) + (rSize <= 16 KB); in ZSTD_getCParams_internal()
/freebsd/contrib/sqlite3/
H A Dsqlite3.c165158 rSize = pProbe->aiRowLogEst[0];
165159 rLogSize = estLog(rSize);
165922 rSize = pTab->nRowLogEst;
165940 rLogSize = estLog(rSize);
165957 pNew->rSetup = rLogSize + rSize;
165993 rSize = pProbe->aiRowLogEst[0];
166002 pNew->nOut = rSize;
166029 pNew->rRun = rSize + 16;
166032 whereLoopOutputAdjust(pWC, pNew, rSize);
166034 pNew->nOut = rSize;
[all …]