Lines Matching refs:cSrcSize
89 const void* cSrc, size_t cSrcSize, \
92 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
97 const void* cSrc, size_t cSrcSize, \
100 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
104 size_t cSrcSize, HUF_DTable const* DTable, int bmi2) \
107 return fn##_bmi2(dst, dstSize, cSrc, cSrcSize, DTable); \
109 return fn##_default(dst, dstSize, cSrc, cSrcSize, DTable); \
116 size_t cSrcSize, HUF_DTable const* DTable, int bmi2) \
119 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
528 const void* cSrc, size_t cSrcSize, in HUF_decompress1X1_usingDTable_internal_body() argument
539 CHECK_F( BIT_initDStream(&bitD, cSrc, cSrcSize) ); in HUF_decompress1X1_usingDTable_internal_body()
551 const void* cSrc, size_t cSrcSize, in HUF_decompress4X1_usingDTable_internal_body() argument
555 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per… in HUF_decompress4X1_usingDTable_internal_body()
572 size_t const length4 = cSrcSize - (length1 + length2 + length3 + 6); in HUF_decompress4X1_usingDTable_internal_body()
589 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X1_usingDTable_internal_body()
648 size_t cSrcSize, HUF_DTable const* DTable) { in HUF_decompress4X1_usingDTable_internal_bmi2() argument
649 return HUF_decompress4X1_usingDTable_internal_body(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X1_usingDTable_internal_bmi2()
656 size_t cSrcSize, HUF_DTable const* DTable) { in HUF_decompress4X1_usingDTable_internal_default() argument
657 return HUF_decompress4X1_usingDTable_internal_body(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X1_usingDTable_internal_default()
669 const void* cSrc, size_t cSrcSize, in HUF_decompress4X1_usingDTable_internal_bmi2_asm() argument
677 size_t const ret = HUF_DecompressAsmArgs_init(&args, dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X1_usingDTable_internal_bmi2_asm()
680 … return HUF_decompress4X1_usingDTable_internal_bmi2(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X1_usingDTable_internal_bmi2_asm()
721 size_t cSrcSize,
727 size_t cSrcSize, HUF_DTable const* DTable, int bmi2) in HUF_DGEN()
732 … return HUF_decompress4X1_usingDTable_internal_bmi2_asm(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_DGEN()
734 return HUF_decompress4X1_usingDTable_internal_bmi2(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_DGEN()
742 return HUF_decompress4X1_usingDTable_internal_bmi2_asm(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_DGEN()
744 return HUF_decompress4X1_usingDTable_internal_default(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_DGEN()
751 const void* cSrc, size_t cSrcSize, in HUF_decompress1X1_usingDTable() argument
756 … return HUF_decompress1X1_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress1X1_usingDTable()
760 const void* cSrc, size_t cSrcSize, in HUF_decompress1X1_DCtx_wksp() argument
765 size_t const hSize = HUF_readDTableX1_wksp(DCtx, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress1X1_DCtx_wksp()
767 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress1X1_DCtx_wksp()
768 ip += hSize; cSrcSize -= hSize; in HUF_decompress1X1_DCtx_wksp()
770 return HUF_decompress1X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx, /* bmi2 */ 0); in HUF_decompress1X1_DCtx_wksp()
776 const void* cSrc, size_t cSrcSize, in HUF_decompress4X1_usingDTable() argument
781 … return HUF_decompress4X1_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X1_usingDTable()
785 const void* cSrc, size_t cSrcSize, in HUF_decompress4X1_DCtx_wksp_bmi2() argument
790 … size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2()
792 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X1_DCtx_wksp_bmi2()
793 ip += hSize; cSrcSize -= hSize; in HUF_decompress4X1_DCtx_wksp_bmi2()
795 return HUF_decompress4X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2()
799 const void* cSrc, size_t cSrcSize, in HUF_decompress4X1_DCtx_wksp() argument
802 …return HUF_decompress4X1_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, 0… in HUF_decompress4X1_DCtx_wksp()
1220 const void* cSrc, size_t cSrcSize, in HUF_decompress1X2_usingDTable_internal_body() argument
1226 CHECK_F( BIT_initDStream(&bitD, cSrc, cSrcSize) ); in HUF_decompress1X2_usingDTable_internal_body()
1246 const void* cSrc, size_t cSrcSize, in HUF_decompress4X2_usingDTable_internal_body() argument
1249 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUF_decompress4X2_usingDTable_internal_body()
1266 size_t const length4 = cSrcSize - (length1 + length2 + length3 + 6); in HUF_decompress4X2_usingDTable_internal_body()
1283 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X2_usingDTable_internal_body()
1364 size_t cSrcSize, HUF_DTable const* DTable) { in HUF_decompress4X2_usingDTable_internal_bmi2() argument
1365 return HUF_decompress4X2_usingDTable_internal_body(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable_internal_bmi2()
1372 size_t cSrcSize, HUF_DTable const* DTable) { in HUF_decompress4X2_usingDTable_internal_default() argument
1373 return HUF_decompress4X2_usingDTable_internal_body(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable_internal_default()
1384 const void* cSrc, size_t cSrcSize, in HUF_decompress4X2_usingDTable_internal_bmi2_asm() argument
1391 size_t const ret = HUF_DecompressAsmArgs_init(&args, dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable_internal_bmi2_asm()
1394 … return HUF_decompress4X2_usingDTable_internal_bmi2(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable_internal_bmi2_asm()
1432 size_t cSrcSize, HUF_DTable const* DTable, int bmi2) in HUF_decompress4X2_usingDTable_internal() argument
1437 … return HUF_decompress4X2_usingDTable_internal_bmi2_asm(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable_internal()
1439 return HUF_decompress4X2_usingDTable_internal_bmi2(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable_internal()
1447 return HUF_decompress4X2_usingDTable_internal_bmi2_asm(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable_internal()
1449 return HUF_decompress4X2_usingDTable_internal_default(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable_internal()
1457 const void* cSrc, size_t cSrcSize, in HUF_DGEN()
1462 … return HUF_decompress1X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_DGEN()
1466 const void* cSrc, size_t cSrcSize, in HUF_decompress1X2_DCtx_wksp() argument
1471 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, in HUF_decompress1X2_DCtx_wksp()
1474 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress1X2_DCtx_wksp()
1475 ip += hSize; cSrcSize -= hSize; in HUF_decompress1X2_DCtx_wksp()
1477 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx, /* bmi2 */ 0); in HUF_decompress1X2_DCtx_wksp()
1483 const void* cSrc, size_t cSrcSize, in HUF_decompress4X2_usingDTable() argument
1488 … return HUF_decompress4X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X2_usingDTable()
1492 const void* cSrc, size_t cSrcSize, in HUF_decompress4X2_DCtx_wksp_bmi2() argument
1497 size_t hSize = HUF_readDTableX2_wksp(dctx, cSrc, cSrcSize, in HUF_decompress4X2_DCtx_wksp_bmi2()
1500 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X2_DCtx_wksp_bmi2()
1501 ip += hSize; cSrcSize -= hSize; in HUF_decompress4X2_DCtx_wksp_bmi2()
1503 return HUF_decompress4X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress4X2_DCtx_wksp_bmi2()
1507 const void* cSrc, size_t cSrcSize, in HUF_decompress4X2_DCtx_wksp() argument
1510 …return HUF_decompress4X2_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, /… in HUF_decompress4X2_DCtx_wksp()
1522 const void* cSrc, size_t cSrcSize, in HUF_decompress1X_usingDTable() argument
1529 …return HUF_decompress1X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ … in HUF_decompress1X_usingDTable()
1533 …return HUF_decompress1X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ … in HUF_decompress1X_usingDTable()
1535 …return dtd.tableType ? HUF_decompress1X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress1X_usingDTable()
1536 … HUF_decompress1X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress1X_usingDTable()
1541 const void* cSrc, size_t cSrcSize, in HUF_decompress4X_usingDTable() argument
1548 …return HUF_decompress4X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ … in HUF_decompress4X_usingDTable()
1552 …return HUF_decompress4X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ … in HUF_decompress4X_usingDTable()
1554 …return dtd.tableType ? HUF_decompress4X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress4X_usingDTable()
1555 … HUF_decompress4X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X_usingDTable()
1589 U32 HUF_selectDecoder (size_t dstSize, size_t cSrcSize) in HUF_selectDecoder() argument
1595 (void)cSrcSize; in HUF_selectDecoder()
1599 (void)cSrcSize; in HUF_selectDecoder()
1603 { U32 const Q = (cSrcSize >= dstSize) ? 15 : (U32)(cSrcSize * 16 / dstSize); /* Q < 16 */ in HUF_selectDecoder()
1616 size_t cSrcSize, void* workSpace, in HUF_decompress4X_hufOnly_wksp() argument
1621 if (cSrcSize == 0) return ERROR(corruption_detected); in HUF_decompress4X_hufOnly_wksp()
1623 { U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress4X_hufOnly_wksp()
1627 return HUF_decompress4X1_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress4X_hufOnly_wksp()
1631 return HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress4X_hufOnly_wksp()
1634 cSrcSize, workSpace, wkspSize): in HUF_decompress4X_hufOnly_wksp()
1635 … HUF_decompress4X1_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress4X_hufOnly_wksp()
1641 const void* cSrc, size_t cSrcSize, in HUF_decompress1X_DCtx_wksp() argument
1646 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */ in HUF_decompress1X_DCtx_wksp()
1647 …if (cSrcSize == dstSize) { ZSTD_memcpy(dst, cSrc, dstSize); return dstSize; } /* not compressed … in HUF_decompress1X_DCtx_wksp()
1648 … if (cSrcSize == 1) { ZSTD_memset(dst, *(const BYTE*)cSrc, dstSize); return dstSize; } /* RLE */ in HUF_decompress1X_DCtx_wksp()
1650 { U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress1X_DCtx_wksp()
1655 cSrcSize, workSpace, wkspSize); in HUF_decompress1X_DCtx_wksp()
1660 cSrcSize, workSpace, wkspSize); in HUF_decompress1X_DCtx_wksp()
1663 cSrcSize, workSpace, wkspSize): in HUF_decompress1X_DCtx_wksp()
1665 cSrcSize, workSpace, wkspSize); in HUF_decompress1X_DCtx_wksp()
1671 …usingDTable_bmi2(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable… in HUF_decompress1X_usingDTable_bmi2() argument
1677 return HUF_decompress1X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress1X_usingDTable_bmi2()
1681 return HUF_decompress1X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress1X_usingDTable_bmi2()
1683 …return dtd.tableType ? HUF_decompress1X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress1X_usingDTable_bmi2()
1684 … HUF_decompress1X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress1X_usingDTable_bmi2()
1689 …2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace,… in HUF_decompress1X1_DCtx_wksp_bmi2() argument
1693 … size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress1X1_DCtx_wksp_bmi2()
1695 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress1X1_DCtx_wksp_bmi2()
1696 ip += hSize; cSrcSize -= hSize; in HUF_decompress1X1_DCtx_wksp_bmi2()
1698 return HUF_decompress1X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress1X1_DCtx_wksp_bmi2()
1702 …usingDTable_bmi2(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable… in HUF_decompress4X_usingDTable_bmi2() argument
1708 return HUF_decompress4X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress4X_usingDTable_bmi2()
1712 return HUF_decompress4X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress4X_usingDTable_bmi2()
1714 …return dtd.tableType ? HUF_decompress4X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress4X_usingDTable_bmi2()
1715 … HUF_decompress4X1_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable, bmi2); in HUF_decompress4X_usingDTable_bmi2()
1719 …2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace,… in HUF_decompress4X_hufOnly_wksp_bmi2() argument
1723 if (cSrcSize == 0) return ERROR(corruption_detected); in HUF_decompress4X_hufOnly_wksp_bmi2()
1725 { U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress4X_hufOnly_wksp_bmi2()
1729 …return HUF_decompress4X1_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, b… in HUF_decompress4X_hufOnly_wksp_bmi2()
1733 …return HUF_decompress4X2_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, b… in HUF_decompress4X_hufOnly_wksp_bmi2()
1735 …return algoNb ? HUF_decompress4X2_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wk… in HUF_decompress4X_hufOnly_wksp_bmi2()
1736 … HUF_decompress4X1_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress4X_hufOnly_wksp_bmi2()