Lines Matching refs:dstSize
88 void* dst, size_t dstSize, \
92 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
96 void* dst, size_t dstSize, \
100 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
103 static size_t fn(void* dst, size_t dstSize, void const* cSrc, \
107 return fn##_bmi2(dst, dstSize, cSrc, cSrcSize, DTable); \
109 return fn##_default(dst, dstSize, cSrc, cSrcSize, DTable); \
115 static size_t fn(void* dst, size_t dstSize, void const* cSrc, \
119 return fn##_body(dst, dstSize, cSrc, cSrcSize, DTable); \
162 static size_t HUF_DecompressAsmArgs_init(HUF_DecompressAsmArgs* args, void* dst, size_t dstSize, vo… in HUF_DecompressAsmArgs_init() argument
169 BYTE* const oend = (BYTE*)dst + dstSize; in HUF_DecompressAsmArgs_init()
215 args->op[1] = args->op[0] + (dstSize+3)/4; in HUF_DecompressAsmArgs_init()
216 args->op[2] = args->op[1] + (dstSize+3)/4; in HUF_DecompressAsmArgs_init()
217 args->op[3] = args->op[2] + (dstSize+3)/4; in HUF_DecompressAsmArgs_init()
527 void* dst, size_t dstSize, in HUF_decompress1X1_usingDTable_internal_body() argument
532 BYTE* const oend = op + dstSize; in HUF_decompress1X1_usingDTable_internal_body()
545 return dstSize; in HUF_decompress1X1_usingDTable_internal_body()
550 void* dst, size_t dstSize, in HUF_decompress4X1_usingDTable_internal_body() argument
559 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body()
577 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X1_usingDTable_internal_body()
641 return dstSize; in HUF_decompress4X1_usingDTable_internal_body()
647 size_t HUF_decompress4X1_usingDTable_internal_bmi2(void* dst, size_t dstSize, void const* cSrc, 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()
655 size_t HUF_decompress4X1_usingDTable_internal_default(void* dst, size_t dstSize, void const* cSrc, 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()
668 void* dst, size_t dstSize, in HUF_decompress4X1_usingDTable_internal_bmi2_asm() argument
674 BYTE* const oend = (BYTE*)dst + dstSize; in HUF_decompress4X1_usingDTable_internal_bmi2_asm()
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()
698 size_t const segmentSize = (dstSize+3) / 4; in HUF_decompress4X1_usingDTable_internal_bmi2_asm()
715 return dstSize; in HUF_decompress4X1_usingDTable_internal_bmi2_asm()
719 typedef size_t (*HUF_decompress_usingDTable_t)(void *dst, size_t dstSize,
726 static size_t HUF_decompress4X1_usingDTable_internal(void* dst, size_t dstSize, void const* cSrc, 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()
750 void* dst, size_t dstSize, in HUF_decompress1X1_usingDTable() argument
756 … return HUF_decompress1X1_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress1X1_usingDTable()
759 size_t HUF_decompress1X1_DCtx_wksp(HUF_DTable* DCtx, void* dst, size_t dstSize, in HUF_decompress1X1_DCtx_wksp() argument
770 return HUF_decompress1X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx, /* bmi2 */ 0); in HUF_decompress1X1_DCtx_wksp()
775 void* dst, size_t dstSize, in HUF_decompress4X1_usingDTable() argument
781 … return HUF_decompress4X1_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X1_usingDTable()
784 static size_t HUF_decompress4X1_DCtx_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress4X1_DCtx_wksp_bmi2() argument
795 return HUF_decompress4X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2()
798 size_t HUF_decompress4X1_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, 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()
1219 void* dst, size_t dstSize, in HUF_decompress1X2_usingDTable_internal_body() argument
1230 BYTE* const oend = ostart + dstSize; in HUF_decompress1X2_usingDTable_internal_body()
1241 return dstSize; in HUF_decompress1X2_usingDTable_internal_body()
1245 void* dst, size_t dstSize, in HUF_decompress4X2_usingDTable_internal_body() argument
1253 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable_internal_body()
1271 size_t const segmentSize = (dstSize+3) / 4; in HUF_decompress4X2_usingDTable_internal_body()
1357 return dstSize; in HUF_decompress4X2_usingDTable_internal_body()
1363 size_t HUF_decompress4X2_usingDTable_internal_bmi2(void* dst, size_t dstSize, void const* cSrc, 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()
1371 size_t HUF_decompress4X2_usingDTable_internal_default(void* dst, size_t dstSize, void const* cSrc, 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()
1383 void* dst, size_t dstSize, in HUF_decompress4X2_usingDTable_internal_bmi2_asm() argument
1388 BYTE* const oend = (BYTE*)dst + dstSize; in HUF_decompress4X2_usingDTable_internal_bmi2_asm()
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()
1410 size_t const segmentSize = (dstSize+3) / 4; in HUF_decompress4X2_usingDTable_internal_bmi2_asm()
1427 return dstSize; in HUF_decompress4X2_usingDTable_internal_bmi2_asm()
1431 static size_t HUF_decompress4X2_usingDTable_internal(void* dst, size_t dstSize, void const* cSrc, 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()
1456 void* dst, size_t dstSize, in HUF_DGEN()
1462 … return HUF_decompress1X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_DGEN()
1465 size_t HUF_decompress1X2_DCtx_wksp(HUF_DTable* DCtx, void* dst, size_t dstSize, in HUF_decompress1X2_DCtx_wksp() argument
1477 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx, /* bmi2 */ 0); in HUF_decompress1X2_DCtx_wksp()
1482 void* dst, size_t dstSize, in HUF_decompress4X2_usingDTable() argument
1488 … return HUF_decompress4X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable, /* bmi2 */ 0); in HUF_decompress4X2_usingDTable()
1491 static size_t HUF_decompress4X2_DCtx_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress4X2_DCtx_wksp_bmi2() argument
1503 return HUF_decompress4X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress4X2_DCtx_wksp_bmi2()
1506 size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, 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()
1589 U32 HUF_selectDecoder (size_t dstSize, size_t cSrcSize) in HUF_selectDecoder() argument
1591 assert(dstSize > 0); in HUF_selectDecoder()
1592 assert(dstSize <= 128*1024); in HUF_selectDecoder()
1594 (void)dstSize; in HUF_selectDecoder()
1598 (void)dstSize; in HUF_selectDecoder()
1603 { U32 const Q = (cSrcSize >= dstSize) ? 15 : (U32)(cSrcSize * 16 / dstSize); /* Q < 16 */ in HUF_selectDecoder()
1604 U32 const D256 = (U32)(dstSize >> 8); in HUF_selectDecoder()
1615 size_t dstSize, const void* cSrc, in HUF_decompress4X_hufOnly_wksp() argument
1620 if (dstSize == 0) return ERROR(dstSize_tooSmall); 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()
1633 return algoNb ? HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress4X_hufOnly_wksp()
1635 … HUF_decompress4X1_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress4X_hufOnly_wksp()
1640 size_t HUF_decompress1X_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, in HUF_decompress1X_DCtx_wksp() argument
1645 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUF_decompress1X_DCtx_wksp()
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()
1654 return HUF_decompress1X1_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1659 return HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1662 return algoNb ? HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1664 HUF_decompress1X1_DCtx_wksp(dctx, dst, dstSize, cSrc, in HUF_decompress1X_DCtx_wksp()
1689 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
1698 return HUF_decompress1X1_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx, bmi2); in HUF_decompress1X1_DCtx_wksp_bmi2()
1719 size_t HUF_decompress4X_hufOnly_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* … in HUF_decompress4X_hufOnly_wksp_bmi2() argument
1722 if (dstSize == 0) return ERROR(dstSize_tooSmall); 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()