Home
last modified time | relevance | path

Searched refs:cSize (Results 1 – 25 of 33) sorted by relevance

12

/f-stack/freebsd/contrib/zstd/examples/
H A Dsimple_decompression.c18 size_t cSize; in decompress() local
19 void* const cBuff = mallocAndLoadFile_orDie(fname, &cSize); in decompress()
26 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize); in decompress()
37 size_t const dSize = ZSTD_decompress(rBuff, rSize, cBuff, cSize); in decompress()
43 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize); in decompress()
H A Ddictionary_decompression.c32 size_t cSize; in decompress() local
33 void* const cBuff = mallocAndLoadFile_orDie(fname, &cSize); in decompress()
40 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize); in decompress()
51 unsigned const actualDictID = ZSTD_getDictID_fromFrame(cBuff, cSize); in decompress()
64 size_t const dSize = ZSTD_decompress_usingDDict(dctx, rBuff, rSize, cBuff, cSize, ddict); in decompress()
70 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize); in decompress()
H A Dsimple_compression.c28 size_t const cSize = ZSTD_compress(cBuff, cBuffSize, fBuff, fSize, 1); in compress_orDie() local
29 CHECK_ZSTD(cSize); in compress_orDie()
31 saveFile_orDie(oname, cBuff, cSize); in compress_orDie()
34 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compress_orDie()
H A Ddictionary_compression.c45 size_t const cSize = ZSTD_compress_usingCDict(cctx, cBuff, cBuffSize, fBuff, fSize, cdict); in compress() local
46 CHECK_ZSTD(cSize); in compress()
48 saveFile_orDie(oname, cBuff, cSize); in compress()
51 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compress()
H A Dmultiple_simple_compression.c74 …size_t const cSize = ZSTD_compressCCtx(ress.cctx, ress.cBuffer, ress.cBufferSize, ress.fBuffer, fS… in compressFile_orDie() local
75 CHECK_ZSTD(cSize); in compressFile_orDie()
77 saveFile_orDie(oname, ress.cBuffer, cSize); in compressFile_orDie()
80 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compressFile_orDie()
/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dhuf_compress.c98 op += cSize; in HUF_compressWeights()
673 if (cSize==0) return 0; in HUF_compress4X_usingCTable_internal()
674 assert(cSize <= 65535); in HUF_compress4X_usingCTable_internal()
676 op += cSize; in HUF_compress4X_usingCTable_internal()
682 if (cSize==0) return 0; in HUF_compress4X_usingCTable_internal()
683 assert(cSize <= 65535); in HUF_compress4X_usingCTable_internal()
685 op += cSize; in HUF_compress4X_usingCTable_internal()
694 op += cSize; in HUF_compress4X_usingCTable_internal()
702 op += cSize; in HUF_compress4X_usingCTable_internal()
723 if (HUF_isError(cSize)) { return cSize; } in HUF_compressCTable_internal()
[all …]
H A Dzstdmt_compress.c610 assert(ZSTD_isError(cSize)); (void)cSize; in ZSTDMT_serialState_ensureFinished()
726 assert(job->cSize == 0); in ZSTDMT_compressionJob()
729 if (ZSTD_isError(cSize)) JOB_ERROR(cSize); in ZSTDMT_compressionJob()
734 job->cSize += cSize; in ZSTDMT_compressionJob()
737 (U32)cSize, (U32)job->cSize); in ZSTDMT_compressionJob()
750 if (ZSTD_isError(cSize)) JOB_ERROR(cSize); in ZSTDMT_compressionJob()
765 job->cSize += lastCBlockSize; in ZSTDMT_compressionJob()
1429 { size_t cSize = mtctx->jobs[wJobID].cSize; /* shared */ in ZSTDMT_flushProduced() local
1433 if (ZSTD_isError(cSize)) { in ZSTDMT_flushProduced()
1438 return cSize; in ZSTDMT_flushProduced()
[all …]
H A Dzstd_compress_superblock.c360 op += cSize; in ZSTD_compressSubBlock_literal()
361 cLitSize += cSize; in ZSTD_compressSubBlock_literal()
362 if (cSize == 0 || ERR_isError(cSize)) { in ZSTD_compressSubBlock_literal()
377 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (cSize=%zu)", cSize); in ZSTD_compressSubBlock_literal()
572 { size_t cSize = (op-ostart)-ZSTD_blockHeaderSize; in ZSTD_compressSubBlock() local
772 FORWARD_IF_ERROR(cSize, "ZSTD_compressSubBlock failed"); in ZSTD_compressSubBlock_multi()
773 if (cSize > 0 && cSize < decompressedSize) { in ZSTD_compressSubBlock_multi()
779 op += cSize; in ZSTD_compressSubBlock_multi()
809 FORWARD_IF_ERROR(cSize, "ZSTD_noCompressBlock failed"); in ZSTD_compressSubBlock_multi()
810 assert(cSize != 0); in ZSTD_compressSubBlock_multi()
[all …]
H A Dzstd_compress.c2196 op += cSize; in ZSTD_entropyCompressSequences_internal()
2367 return cSize; in ZSTD_entropyCompressSequences()
2672 size_t cSize; in ZSTD_compressBlock_internal() local
2714 cSize = 1; in ZSTD_compressBlock_internal()
2719 if (!ZSTD_isError(cSize) && cSize > 1) { in ZSTD_compressBlock_internal()
2729 return cSize; in ZSTD_compressBlock_internal()
2792 size_t cSize = 0; in ZSTD_compressBlock_targetCBlockSize() local
2804 return cSize; in ZSTD_compressBlock_targetCBlockSize()
4894 return cSize; in ZSTD_compressSequences_internal()
4931 cSize += 4; in ZSTD_compressSequences()
[all …]
H A Dfse_compress.c672 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, src, srcSize, CTable) ); in FSE_compress_wksp()
673 if (cSize == 0) return 0; /* not enough space for compressed data */ in FSE_compress_wksp()
674 op += cSize; in FSE_compress_wksp()
/f-stack/freebsd/contrib/zstd/zlibWrapper/examples/
H A Dzwrapbench.c143 size_t cSize; member
209 size_t cSize = 0; in BMK_benchMem() local
256 blockTable[blockNb].cSize = rSize; in BMK_benchMem()
285 blockTable[blockNb].cSize = outBuffer.pos; in BMK_benchMem()
326 blockTable[blockNb].cSize = def.total_out; in BMK_benchMem()
359 blockTable[blockNb].cSize = def.total_out; in BMK_benchMem()
370 cSize = 0; in BMK_benchMem()
371 … { U32 blockNb; for (blockNb=0; blockNb<nbBlocks; blockNb++) cSize += blockTable[blockNb].cSize; } in BMK_benchMem()
372 ratio = (double)srcSize / (double)cSize; in BMK_benchMem()
424 inBuffer.size = blockTable[blockNb].cSize; in BMK_benchMem()
[all …]
/f-stack/freebsd/contrib/zstd/programs/
H A Dbenchzstd.c154 size_t cSize; member
320 size_t cSize = 0; in BMK_benchMemAdvancedNoAlloc() local
350 cSize = srcSize; in BMK_benchMemAdvancedNoAlloc()
352 ratio = (double)srcSize / (double)cSize; in BMK_benchMemAdvancedNoAlloc()
379 benchResult.cSize = thisBlockSize; in BMK_benchMemAdvancedNoAlloc()
450 cSize = cResult.sumOfReturn; in BMK_benchMemAdvancedNoAlloc()
451 ratio = (double)srcSize / cSize; in BMK_benchMemAdvancedNoAlloc()
454 benchResult.cSize = cSize; in BMK_benchMemAdvancedNoAlloc()
462 (unsigned)srcSize, (unsigned)cSize, in BMK_benchMemAdvancedNoAlloc()
485 (unsigned)srcSize, (unsigned)cSize, in BMK_benchMemAdvancedNoAlloc()
[all …]
H A Dbenchzstd.h51 size_t cSize; member
/f-stack/freebsd/contrib/zstd/lib/legacy/
H A Dzstd_v02.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v01.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v03.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v04.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v01.c1471 U32 cSize; in ZSTDv01_getcBlockSize() local
1476 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTDv01_getcBlockSize()
1479 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTDv01_getcBlockSize()
1483 return cSize; in ZSTDv01_getcBlockSize()
2010 static void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
2012 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
2026 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv01_findFrameSizeInfoLegacy()
2031 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv01_findFrameSizeInfoLegacy()
2041 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, blockSize); in ZSTDv01_findFrameSizeInfoLegacy()
2048 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv01_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v07.h63 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v06.h56 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v05.h47 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v03.c2466 U32 cSize; in ZSTD_getcBlockSize() local
2471 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTD_getcBlockSize()
2474 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTD_getcBlockSize()
2478 return cSize; in ZSTD_getcBlockSize()
2974 MEM_STATIC void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
2976 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
2990 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv03_findFrameSizeInfoLegacy()
2995 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv03_findFrameSizeInfoLegacy()
3005 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, cBlockSize); in ZSTDv03_findFrameSizeInfoLegacy()
3012 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv03_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v04.c2592 U32 cSize; in ZSTD_getcBlockSize() local
2597 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTD_getcBlockSize()
2600 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTD_getcBlockSize()
2604 return cSize; in ZSTD_getcBlockSize()
3141 static void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
3143 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
3156 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv04_findFrameSizeInfoLegacy()
3160 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv04_findFrameSizeInfoLegacy()
3170 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, cBlockSize); in ZSTDv04_findFrameSizeInfoLegacy()
3177 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv04_findFrameSizeInfoLegacy()
[all …]
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c8149 op += cSize; in FSE_compress_wksp()
8984 if (HUF_isError(cSize)) { return cSize; } in HUF_compressCTable_internal()
8986 op += cSize; in HUF_compressCTable_internal()
12070 if (cSize == 0 || ERR_isError(cSize)) { in ZSTD_compressSubBlock_literal()
12477 if (cSize > 0 && cSize < decompressedSize) { in ZSTD_compressSubBlock_multi()
15261 return cSize; in ZSTD_compressSequences()
15507 size_t cSize; in ZSTD_compressBlock_internal() local
15542 cSize = 1; in ZSTD_compressBlock_internal()
15547 if (!ZSTD_isError(cSize) && cSize > 1) { in ZSTD_compressBlock_internal()
15557 return cSize; in ZSTD_compressBlock_internal()
[all …]
/f-stack/freebsd/contrib/zstd/zlibWrapper/
H A Dzstd_zlibwrapper.c1091 size_t const cSize = ZSTD_compress(dest, dstCapacity, in z_compress() local
1096 if (ZSTD_isError(cSize)) return Z_STREAM_ERROR; in z_compress()
1097 *destLen = cSize; in z_compress()
1111 size_t const cSize = ZSTD_compress(dest, dstCapacity, source, sourceLen, level); in z_compress2() local
1112 if (ZSTD_isError(cSize)) return Z_STREAM_ERROR; in z_compress2()
1113 *destLen = cSize; in z_compress2()

12