Lines Matching refs:dstSize
61 void* dst, size_t dstSize, \
65 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
69 void* dst, size_t dstSize, \
73 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
76 static size_t fn(void* dst, size_t dstSize, void const* cSrc, \
80 return fn##_bmi2(dst, dstSize, cSrc, cSrcSize, DTable); \
82 return fn##_default(dst, dstSize, cSrc, cSrcSize, DTable); \
88 static size_t fn(void* dst, size_t dstSize, void const* cSrc, \
92 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
328 void* dst, size_t dstSize, in HUF_decompress1X1_usingDTable_internal_body() argument
333 BYTE* const oend = op + dstSize; in HUF_decompress1X1_usingDTable_internal_body()
346 return dstSize; in HUF_decompress1X1_usingDTable_internal_body()
351 void* dst, size_t dstSize, in HUF_decompress4X1_usingDTable_internal_body() argument
360 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body()
378 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X1_usingDTable_internal_body()
439 return dstSize; in HUF_decompress4X1_usingDTable_internal_body()
444 typedef size_t (*HUF_decompress_usingDTable_t)(void *dst, size_t dstSize,
455 void* dst, size_t dstSize, in HUF_DGEN()
461 … return HUF_decompress1X1_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_DGEN()
464 size_t HUF_decompress1X1_DCtx_wksp(HUF_DTable* DCtx, void* dst, size_t dstSize, in HUF_decompress1X1_DCtx_wksp() argument
475 return HUF_decompress1X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx, /* bmi2 */ 0); in HUF_decompress1X1_DCtx_wksp()
480 void* dst, size_t dstSize, in HUF_decompress4X1_usingDTable() argument
486 … return HUF_decompress4X1_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X1_usingDTable()
489 static size_t HUF_decompress4X1_DCtx_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress4X1_DCtx_wksp_bmi2() argument
500 return HUF_decompress4X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2()
503 size_t HUF_decompress4X1_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress4X1_DCtx_wksp() argument
507 …return HUF_decompress4X1_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, 0… in HUF_decompress4X1_DCtx_wksp()
778 void* dst, size_t dstSize, in HUF_decompress1X2_usingDTable_internal_body() argument
789 BYTE* const oend = ostart + dstSize; in HUF_decompress1X2_usingDTable_internal_body()
800 return dstSize; in HUF_decompress1X2_usingDTable_internal_body()
805 void* dst, size_t dstSize, in HUF_decompress4X2_usingDTable_internal_body() argument
813 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable_internal_body()
831 size_t const segmentSize = (dstSize+3) / 4; in HUF_decompress4X2_usingDTable_internal_body()
914 return dstSize; in HUF_decompress4X2_usingDTable_internal_body()
922 void* dst, size_t dstSize, in HUF_DGEN()
928 … return HUF_decompress1X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_DGEN()
931 size_t HUF_decompress1X2_DCtx_wksp(HUF_DTable* DCtx, void* dst, size_t dstSize, in HUF_decompress1X2_DCtx_wksp() argument
943 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx, /* bmi2 */ 0); in HUF_decompress1X2_DCtx_wksp()
948 void* dst, size_t dstSize, in HUF_decompress4X2_usingDTable() argument
954 … return HUF_decompress4X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X2_usingDTable()
957 static size_t HUF_decompress4X2_DCtx_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress4X2_DCtx_wksp_bmi2() argument
969 return HUF_decompress4X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress4X2_DCtx_wksp_bmi2()
972 size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress4X2_DCtx_wksp() argument
976 …return HUF_decompress4X2_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, /… in HUF_decompress4X2_DCtx_wksp()
1055 U32 HUF_selectDecoder (size_t dstSize, size_t cSrcSize) in HUF_selectDecoder() argument
1057 assert(dstSize > 0); in HUF_selectDecoder()
1058 assert(dstSize <= 128*1024); in HUF_selectDecoder()
1060 (void)dstSize; in HUF_selectDecoder()
1064 (void)dstSize; in HUF_selectDecoder()
1069 { U32 const Q = (cSrcSize >= dstSize) ? 15 : (U32)(cSrcSize * 16 / dstSize); /* Q < 16 */ in HUF_selectDecoder()
1070 U32 const D256 = (U32)(dstSize >> 8); in HUF_selectDecoder()
1081 size_t dstSize, const void* cSrc, in HUF_decompress4X_hufOnly_wksp() argument
1086 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUF_decompress4X_hufOnly_wksp()
1089 { U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress4X_hufOnly_wksp()
1093 return HUF_decompress4X1_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress4X_hufOnly_wksp()
1097 return HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress4X_hufOnly_wksp()
1099 return algoNb ? HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress4X_hufOnly_wksp()
1101 … HUF_decompress4X1_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress4X_hufOnly_wksp()
1106 size_t HUF_decompress1X_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress1X_DCtx_wksp() argument
1111 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUF_decompress1X_DCtx_wksp()
1112 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */ in HUF_decompress1X_DCtx_wksp()
1113 …if (cSrcSize == dstSize) { ZSTD_memcpy(dst, cSrc, dstSize); return dstSize; } /* not compressed … in HUF_decompress1X_DCtx_wksp()
1114 … if (cSrcSize == 1) { ZSTD_memset(dst, *(const BYTE*)cSrc, dstSize); return dstSize; } /* RLE */ in HUF_decompress1X_DCtx_wksp()
1116 { U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress1X_DCtx_wksp()
1120 return HUF_decompress1X1_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1125 return HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1128 return algoNb ? HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1130 HUF_decompress1X1_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1155 size_t HUF_decompress1X1_DCtx_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cS… in HUF_decompress1X1_DCtx_wksp_bmi2() argument
1164 return HUF_decompress1X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress1X1_DCtx_wksp_bmi2()
1185 size_t HUF_decompress4X_hufOnly_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* … in HUF_decompress4X_hufOnly_wksp_bmi2() argument
1188 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUF_decompress4X_hufOnly_wksp_bmi2()
1191 { U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress4X_hufOnly_wksp_bmi2()
1195 …return HUF_decompress4X1_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, b… in HUF_decompress4X_hufOnly_wksp_bmi2()
1199 …return HUF_decompress4X2_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, b… in HUF_decompress4X_hufOnly_wksp_bmi2()
1201 …return algoNb ? HUF_decompress4X2_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wk… in HUF_decompress4X_hufOnly_wksp_bmi2()
1202 … HUF_decompress4X1_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress4X_hufOnly_wksp_bmi2()