Lines Matching refs:cSrcSize
62 const void* cSrc, size_t cSrcSize, \
65 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
70 const void* cSrc, size_t cSrcSize, \
73 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
77 size_t cSrcSize, HUF_DTable const* DTable, int bmi2) \
80 return fn##_bmi2(dst, dstSize, cSrc, cSrcSize, DTable); \
82 return fn##_default(dst, dstSize, cSrc, cSrcSize, DTable); \
89 size_t cSrcSize, HUF_DTable const* DTable, int bmi2) \
92 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
329 const void* cSrc, size_t cSrcSize, in HUF_decompress1X1_usingDTable_internal_body() argument
340 CHECK_F( BIT_initDStream(&bitD, cSrc, cSrcSize) ); in HUF_decompress1X1_usingDTable_internal_body()
352 const void* cSrc, size_t cSrcSize, in HUF_decompress4X1_usingDTable_internal_body() argument
356 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per… in HUF_decompress4X1_usingDTable_internal_body()
373 size_t const length4 = cSrcSize - (length1 + length2 + length3 + 6); in HUF_decompress4X1_usingDTable_internal_body()
390 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X1_usingDTable_internal_body()
446 size_t cSrcSize,
456 const void* cSrc, size_t cSrcSize, in HUF_DGEN()
461 … return HUF_decompress1X1_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_DGEN()
465 const void* cSrc, size_t cSrcSize, in HUF_decompress1X1_DCtx_wksp() argument
470 size_t const hSize = HUF_readDTableX1_wksp(DCtx, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress1X1_DCtx_wksp()
472 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress1X1_DCtx_wksp()
473 ip += hSize; cSrcSize -= hSize; in HUF_decompress1X1_DCtx_wksp()
475 return HUF_decompress1X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx, /* bmi2 */ 0); in HUF_decompress1X1_DCtx_wksp()
481 const void* cSrc, size_t cSrcSize, in HUF_decompress4X1_usingDTable() argument
486 … return HUF_decompress4X1_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X1_usingDTable()
490 const void* cSrc, size_t cSrcSize, in HUF_decompress4X1_DCtx_wksp_bmi2() argument
495 … size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2()
497 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X1_DCtx_wksp_bmi2()
498 ip += hSize; cSrcSize -= hSize; in HUF_decompress4X1_DCtx_wksp_bmi2()
500 return HUF_decompress4X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2()
504 const void* cSrc, size_t cSrcSize, 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()
779 const void* cSrc, size_t cSrcSize, in HUF_decompress1X2_usingDTable_internal_body() argument
785 CHECK_F( BIT_initDStream(&bitD, cSrc, cSrcSize) ); in HUF_decompress1X2_usingDTable_internal_body()
806 const void* cSrc, size_t cSrcSize, in HUF_decompress4X2_usingDTable_internal_body() argument
809 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUF_decompress4X2_usingDTable_internal_body()
826 size_t const length4 = cSrcSize - (length1 + length2 + length3 + 6); in HUF_decompress4X2_usingDTable_internal_body()
843 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X2_usingDTable_internal_body()
923 const void* cSrc, size_t cSrcSize, in HUF_DGEN()
928 … return HUF_decompress1X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_DGEN()
932 const void* cSrc, size_t cSrcSize, in HUF_decompress1X2_DCtx_wksp() argument
937 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, in HUF_decompress1X2_DCtx_wksp()
940 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress1X2_DCtx_wksp()
941 ip += hSize; cSrcSize -= hSize; in HUF_decompress1X2_DCtx_wksp()
943 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx, /* bmi2 */ 0); in HUF_decompress1X2_DCtx_wksp()
949 const void* cSrc, size_t cSrcSize, in HUF_decompress4X2_usingDTable() argument
954 … return HUF_decompress4X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X2_usingDTable()
958 const void* cSrc, size_t cSrcSize, in HUF_decompress4X2_DCtx_wksp_bmi2() argument
963 size_t hSize = HUF_readDTableX2_wksp(dctx, cSrc, cSrcSize, in HUF_decompress4X2_DCtx_wksp_bmi2()
966 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X2_DCtx_wksp_bmi2()
967 ip += hSize; cSrcSize -= hSize; in HUF_decompress4X2_DCtx_wksp_bmi2()
969 return HUF_decompress4X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress4X2_DCtx_wksp_bmi2()
973 const void* cSrc, size_t cSrcSize, 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()
988 const void* cSrc, size_t cSrcSize, in HUF_decompress1X_usingDTable() argument
995 …return HUF_decompress1X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ … in HUF_decompress1X_usingDTable()
999 …return HUF_decompress1X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ … in HUF_decompress1X_usingDTable()
1001 …return dtd.tableType ? HUF_decompress1X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress1X_usingDTable()
1002 … HUF_decompress1X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress1X_usingDTable()
1007 const void* cSrc, size_t cSrcSize, in HUF_decompress4X_usingDTable() argument
1014 …return HUF_decompress4X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ … in HUF_decompress4X_usingDTable()
1018 …return HUF_decompress4X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ … in HUF_decompress4X_usingDTable()
1020 …return dtd.tableType ? HUF_decompress4X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress4X_usingDTable()
1021 … HUF_decompress4X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X_usingDTable()
1055 U32 HUF_selectDecoder (size_t dstSize, size_t cSrcSize) in HUF_selectDecoder() argument
1061 (void)cSrcSize; in HUF_selectDecoder()
1065 (void)cSrcSize; in HUF_selectDecoder()
1069 { U32 const Q = (cSrcSize >= dstSize) ? 15 : (U32)(cSrcSize * 16 / dstSize); /* Q < 16 */ in HUF_selectDecoder()
1082 size_t cSrcSize, void* workSpace, in HUF_decompress4X_hufOnly_wksp() argument
1087 if (cSrcSize == 0) return ERROR(corruption_detected); 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()
1100 cSrcSize, workSpace, wkspSize): in HUF_decompress4X_hufOnly_wksp()
1101 … HUF_decompress4X1_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress4X_hufOnly_wksp()
1107 const void* cSrc, size_t cSrcSize, in HUF_decompress1X_DCtx_wksp() argument
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()
1121 cSrcSize, workSpace, wkspSize); in HUF_decompress1X_DCtx_wksp()
1126 cSrcSize, workSpace, wkspSize); in HUF_decompress1X_DCtx_wksp()
1129 cSrcSize, workSpace, wkspSize): in HUF_decompress1X_DCtx_wksp()
1131 cSrcSize, workSpace, wkspSize); in HUF_decompress1X_DCtx_wksp()
1137 …usingDTable_bmi2(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable… in HUF_decompress1X_usingDTable_bmi2() argument
1143 return HUF_decompress1X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress1X_usingDTable_bmi2()
1147 return HUF_decompress1X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress1X_usingDTable_bmi2()
1149 …return dtd.tableType ? HUF_decompress1X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress1X_usingDTable_bmi2()
1150 … HUF_decompress1X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress1X_usingDTable_bmi2()
1155 …2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace,… in HUF_decompress1X1_DCtx_wksp_bmi2() argument
1159 … size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress1X1_DCtx_wksp_bmi2()
1161 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress1X1_DCtx_wksp_bmi2()
1162 ip += hSize; cSrcSize -= hSize; in HUF_decompress1X1_DCtx_wksp_bmi2()
1164 return HUF_decompress1X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress1X1_DCtx_wksp_bmi2()
1168 …usingDTable_bmi2(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable… in HUF_decompress4X_usingDTable_bmi2() argument
1174 return HUF_decompress4X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress4X_usingDTable_bmi2()
1178 return HUF_decompress4X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress4X_usingDTable_bmi2()
1180 …return dtd.tableType ? HUF_decompress4X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress4X_usingDTable_bmi2()
1181 … HUF_decompress4X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress4X_usingDTable_bmi2()
1185 …2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace,… in HUF_decompress4X_hufOnly_wksp_bmi2() argument
1189 if (cSrcSize == 0) return ERROR(corruption_detected); 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()