Searched refs:hSize (Results 1 - 17 of 17) sorted by relevance

/freebsd-current/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dhuf_decompress.c383 size_t const hSize = HUF_readDTableX1_wksp(DCtx, cSrc, cSrcSize, workSpace, wkspSize); local
384 if (HUF_isError(hSize)) return hSize;
385 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
386 ip += hSize; cSrcSize -= hSize;
422 size_t const hSize = HUF_readDTableX1_wksp (dctx, cSrc, cSrcSize, local
424 if (HUF_isError(hSize)) return hSize;
425 if (hSize >
883 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, local
923 size_t hSize = HUF_readDTableX2_wksp(dctx, cSrc, cSrcSize, local
1202 size_t const hSize = HUF_readDTableX1_wksp(dctx, cSrc, cSrcSize, workSpace, wkspSize); local
[all...]
H A Dzstd_decompress.c1073 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, local
1077 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, local
1081 RETURN_ERROR_IF(HUF_isError(hSize), dictionary_corrupted, "");
1082 dictPtr += hSize;
1637 { size_t const hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSize, zds->format); local
1638 DEBUGLOG(5, "header size : %u", (U32)hSize);
1639 if (ZSTD_isError(hSize)) {
1658 return hSize; /* error */
1660 if (hSize != 0) { /* need more input */
1661 size_t const toLoad = hSize
[all...]
/freebsd-current/sys/contrib/zstd/lib/dictBuilder/
H A Dzdict.c935 size_t hSize; local
956 hSize = 8;
961 { size_t const eSize = ZDICT_analyzeEntropy(header+hSize, HBUFFSIZE-hSize,
967 hSize += eSize;
971 if (hSize + dictContentSize > dictBufferCapacity) {
972 dictContentSize = dictBufferCapacity - hSize;
977 RETURN_ERROR_IF(hSize + minContentSize > dictBufferCapacity, dstSize_tooSmall,
985 size_t const dictSize = hSize + paddingSize + dictContentSize;
992 BYTE* const outDictPadding = outDictHeader + hSize;
1019 size_t hSize = 8; local
[all...]
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dhuf_compress.c91 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), norm, maxSymbolValue, tableLog) );
92 op += hSize;
133 { CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, huffWeight, maxSymbolValue) );
134 if ((hSize>1) & (hSize < maxSymbolValue/2)) { /* FSE compressed */
135 op[0] = (BYTE)hSize;
136 return hSize+1;
703 { CHECK_V_F(hSize, HUF_writeCTable (op, dstSize, table->CTable, maxSymbolValue, huffLog) );
708 if (oldSize <= hSize + newSize || hSize
[all...]
H A Dzstd_compress_superblock.c131 size_t const hSize = HUF_writeCTable( local
138 if (oldCSize < srcSize && (oldCSize <= hSize + newCSize || hSize + 12 >= srcSize)) {
145 if (newCSize + hSize >= srcSize) {
151 DEBUGLOG(5, "set_compressed (hSize=%u)", (U32)hSize);
154 return hSize;
354 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (hSize=%zu)", hufMetadata->hufDesSize);
H A Dzstd_compress.c1103 size_t const hSize = ((size_t)1) << cParams->hashLog; local
1109 + hSize * sizeof(U32)
1121 DEBUGLOG(4, "chainSize: %u - hSize: %u - h3Size: %u",
1122 (U32)chainSize, (U32)hSize, (U32)h3Size);
1353 size_t const hSize = ((size_t)1) << cParams->hashLog; local
1373 ms->hashTable = (U32*)ZSTD_cwksp_reserve_table(ws, hSize * sizeof(U32));
1704 size_t const hSize = (size_t)1 << cdict_cParams->hashLog; local
1708 hSize * sizeof(U32));
1796 size_t const hSize = (size_t)1 << srcCCtx->appliedParams.cParams.hashLog; local
1802 hSize * sizeo
1904 { U32 const hSize = (U32)1 << params->cParams.hashLog; local
[all...]
/freebsd-current/sys/contrib/zstd/lib/decompress/
H A Dhuf_decompress.c769 size_t const hSize = HUF_readDTableX1_wksp(DCtx, cSrc, cSrcSize, workSpace, wkspSize); local
770 if (HUF_isError(hSize)) return hSize;
771 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
772 ip += hSize; cSrcSize -= hSize;
794 size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); local
795 if (HUF_isError(hSize)) return hSize;
796 if (hSize >
1475 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, local
1501 size_t hSize = HUF_readDTableX2_wksp(dctx, cSrc, cSrcSize, local
1697 size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); local
[all...]
H A Dzstd_decompress.c1351 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, local
1355 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, local
1359 RETURN_ERROR_IF(HUF_isError(hSize), dictionary_corrupted, "");
1360 dictPtr += hSize;
1979 { size_t const hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSize, zds->format); local
1983 DEBUGLOG(5, "header size : %u", (U32)hSize);
1984 if (ZSTD_isError(hSize)) {
2003 return hSize; /* error */
2005 if (hSize != 0) { /* need more input */
2006 size_t const toLoad = hSize
[all...]
/freebsd-current/sys/contrib/zstd/lib/compress/
H A Dhuf_compress.c117 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) );
118 op += hSize;
194 { CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, wksp->huffWeight, maxSymbolValue, &wksp->wksp, sizeof(wksp->wksp)) );
195 if ((hSize>1) & (hSize < maxSymbolValue/2)) { /* FSE compressed */
196 op[0] = (BYTE)hSize;
197 return hSize+1;
1260 { CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, table->CTable, maxSymbolValue, huffLog,
1266 if (oldSize <= hSize + newSize || hSize
[all...]
H A Dzstd_compress.c1426 size_t const hSize = ((size_t)1) << cParams->hashLog; local
1432 + hSize * sizeof(U32)
1442 ? ZSTD_cwksp_aligned_alloc_size(hSize*sizeof(U16))
1453 DEBUGLOG(4, "chainSize: %u - hSize: %u - h3Size: %u",
1454 (U32)chainSize, (U32)hSize, (U32)h3Size);
1734 size_t const hSize = ((size_t)1) << cParams->hashLog; local
1755 ms->hashTable = (U32*)ZSTD_cwksp_reserve_table(ws, hSize * sizeof(U32));
1780 size_t const tagTableSize = hSize*sizeof(U16);
2134 size_t const hSize = (size_t)1 << cdict_cParams->hashLog; local
2138 hSize * sizeo
2247 size_t const hSize = (size_t)1 << srcCCtx->appliedParams.cParams.hashLog; local
2363 { U32 const hSize = (U32)1 << params->cParams.hashLog; local
3125 size_t const hSize = HUF_writeCTable_wksp( local
[all...]
H A Dzstdmt_compress.c722 size_t const hSize = ZSTD_compressContinue(cctx, dstBuff.start, dstBuff.capacity, job->src.start, 0); local
723 if (ZSTD_isError(hSize)) JOB_ERROR(hSize);
724 DEBUGLOG(5, "ZSTDMT_compressionJob: flush and overwrite %u bytes of frame header (not first job)", (U32)hSize);
/freebsd-current/sys/contrib/zstd/lib/legacy/
H A Dzstd_v07.c1905 size_t const hSize = HUFv07_readDTableX2 (DCtx, cSrc, cSrcSize); local
1906 if (HUFv07_isError(hSize)) return hSize;
1907 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
1908 ip += hSize; cSrcSize -= hSize;
2028 size_t const hSize = HUFv07_readDTableX2 (dctx, cSrc, cSrcSize); local
2029 if (HUFv07_isError(hSize)) return hSize;
2030 if (hSize >
2317 size_t const hSize = HUFv07_readDTableX4 (DCtx, cSrc, cSrcSize); local
2439 size_t hSize = HUFv07_readDTableX4 (dctx, cSrc, cSrcSize); local
4098 { size_t const hSize = HUFv07_readDTableX4(dctx->hufTable, dict, dictSize); local
4415 { size_t const hSize = ZSTDv07_getFrameParams(&(zbd->fParams), zbd->headerBuffer, zbd->lhSize); local
[all...]
H A Dzstd_v06.c2497 size_t const hSize = HUFv06_readDTableX4 (DTable, cSrc, cSrcSize); local
2498 if (HUFv06_isError(hSize)) return hSize;
2499 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2500 ip += hSize;
2501 cSrcSize -= hSize;
2605 size_t hSize = HUFv06_readDTableX4 (DTable, cSrc, cSrcSize); local
2606 if (HUFv06_isError(hSize)) return hSize;
2607 if (hSize >
3809 size_t hSize, offcodeHeaderSize, matchlengthHeaderSize, litlengthHeaderSize; local
4033 { size_t const hSize = ZSTDv06_getFrameParams(&(zbd->fParams), zbd->headerBuffer, zbd->lhSize); local
[all...]
H A Dzstd_v05.c2369 size_t hSize = HUFv05_readDTableX4 (DTable, cSrc, cSrcSize); local
2370 if (HUFv05_isError(hSize)) return hSize;
2371 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2372 ip += hSize;
2373 cSrcSize -= hSize;
2478 size_t hSize = HUFv05_readDTableX4 (DTable, cSrc, cSrcSize); local
2479 if (HUFv05_isError(hSize)) return hSize;
2480 if (hSize >
3668 size_t hSize, offcodeHeaderSize, matchlengthHeaderSize, errorCode, litlengthHeaderSize; local
[all...]
H A Dzstd_v02.c2181 size_t hSize = HUF_readDTableX4 (DTable, cSrc, cSrcSize); local
2182 if (HUF_isError(hSize)) return hSize;
2183 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2184 ip += hSize;
2185 cSrcSize -= hSize;
2538 size_t hSize = HUF_readDTableX6 (DTable, cSrc, cSrcSize); local
2539 if (HUF_isError(hSize)) return hSize;
2540 if (hSize >
[all...]
H A Dzstd_v03.c2178 size_t hSize = HUF_readDTableX4 (DTable, cSrc, cSrcSize); local
2179 if (HUF_isError(hSize)) return hSize;
2180 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2181 ip += hSize;
2182 cSrcSize -= hSize;
H A Dzstd_v04.c2325 size_t hSize = HUF_readDTableX4 (DTable, cSrc, cSrcSize); local
2326 if (HUF_isError(hSize)) return hSize;
2327 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2328 ip += hSize;
2329 cSrcSize -= hSize;

Completed in 708 milliseconds