/freebsd/sys/contrib/zstd/examples/ |
H A D | simple_decompression.c | 26 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 D | dictionary_decompression.c | 40 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 D | zwrapbench.c | 243 size_t rSize; in BMK_benchMem() local 246 rSize = ZSTD_compress_usingCDict(ctx, in BMK_benchMem() 251 rSize = ZSTD_compressCCtx (ctx, in BMK_benchMem() 255 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_compress_usingCDict() failed : %s", ZSTD_getErrorName(… in BMK_benchMem() 256 blockTable[blockNb].cSize = rSize; in BMK_benchMem() 266 size_t rSize; in BMK_benchMem() local 286 rSize = ZSTD_CCtx_reset(zbc, ZSTD_reset_session_only); in BMK_benchMem() 287 … if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_CCtx_reset() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem() 288 rSize = ZSTD_CCtx_setPledgedSrcSize(zbc, blockTable[blockNb].srcSize); in BMK_benchMem() 289 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_CCtx_setPledgedSrcSize() failed : %s", ZSTD_getErrorNa… in BMK_benchMem() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 953 { size_t rSize; in ZSTD_decompressContinue() local 958 … rSize = ZSTD_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize, /* frame */ 1); in ZSTD_decompressContinue() 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() 969 rSize = ZSTD_setRleBlock(dst, dstCapacity, *(const BYTE*)src, dctx->rleSize); in ZSTD_decompressContinue() 976 FORWARD_IF_ERROR(rSize, ""); in ZSTD_decompressContinue() 977 …RETURN_ERROR_IF(rSize > dctx->fParams.blockSizeMax, corruption_detected, "Decompressed Block Size … in ZSTD_decompressContinue() 978 DEBUGLOG(5, "ZSTD_decompressContinue: decoded size from block : %u", (unsigned)rSize); in ZSTD_decompressContinue() [all …]
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 1226 { size_t rSize; in ZSTD_decompressContinue() local 1231 …rSize = ZSTD_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize, /* frame */ 1, is_stre… in ZSTD_decompressContinue() 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() 1242 rSize = ZSTD_setRleBlock(dst, dstCapacity, *(const BYTE*)src, dctx->rleSize); in ZSTD_decompressContinue() 1249 FORWARD_IF_ERROR(rSize, ""); in ZSTD_decompressContinue() 1250 …RETURN_ERROR_IF(rSize > dctx->fParams.blockSizeMax, corruption_detected, "Decompressed Block Size … in ZSTD_decompressContinue() 1251 DEBUGLOG(5, "ZSTD_decompressContinue: decoded size from block : %u", (unsigned)rSize); in ZSTD_decompressContinue() [all …]
|
/freebsd/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v01.c | 2134 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 D | zstd_v03.c | 3097 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 D | zstd_v07.c | 4042 { 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 D | zstd_v02.c | 3455 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 D | zstd_v04.c | 3243 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 D | zstd_v05.c | 3629 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 D | zstd_v06.c | 3770 { 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 D | zstd_compress.c | 4234 …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 D | zstd_compress.c | 6274 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 D | sqlite3.c | 165124 LogEst rSize; /* Number of rows in the table */ 165167 rSize = pProbe->aiRowLogEst[0]; 165168 rLogSize = estLog(rSize); 165450 whereLoopOutputAdjust(pBuilder->pWC, pNew, rSize); 165888 LogEst rSize; /* number of rows in the table */ 165931 rSize = pTab->nRowLogEst; 165949 rLogSize = estLog(rSize); 165966 pNew->rSetup = rLogSize + rSize; 166002 rSize = pProbe->aiRowLogEst[0]; 166011 pNew->nOut = rSize; [all …]
|