Lines Matching refs:dstSize
169 static size_t HUF_decompress1X2_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress1X2_usingDTable_internal() argument
172 BYTE *const oend = op + dstSize; in HUF_decompress1X2_usingDTable_internal()
191 return dstSize; in HUF_decompress1X2_usingDTable_internal()
194 size_t HUF_decompress1X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress1X2_usingDTable() argument
199 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress1X2_usingDTable()
202 size_t HUF_decompress1X2_DCtx_wksp(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress1X2_DCtx_wksp() argument
214 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx); in HUF_decompress1X2_DCtx_wksp()
217 static size_t HUF_decompress4X2_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress4X2_usingDTable_internal() argument
226 BYTE *const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable_internal()
243 const size_t segmentSize = (dstSize + 3) / 4; in HUF_decompress4X2_usingDTable_internal()
321 return dstSize; in HUF_decompress4X2_usingDTable_internal()
325 size_t HUF_decompress4X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress4X2_usingDTable() argument
330 return HUF_decompress4X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable()
333 size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress4X2_DCtx_wksp() argument
345 return HUF_decompress4X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx); in HUF_decompress4X2_DCtx_wksp()
625 static size_t HUF_decompress1X4_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress1X4_usingDTable_internal() argument
639 BYTE *const oend = ostart + dstSize; in HUF_decompress1X4_usingDTable_internal()
651 return dstSize; in HUF_decompress1X4_usingDTable_internal()
654 size_t HUF_decompress1X4_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress1X4_usingDTable() argument
659 return HUF_decompress1X4_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress1X4_usingDTable()
662 size_t HUF_decompress1X4_DCtx_wksp(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress1X4_DCtx_wksp() argument
674 return HUF_decompress1X4_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx); in HUF_decompress1X4_DCtx_wksp()
677 static size_t HUF_decompress4X4_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress4X4_usingDTable_internal() argument
685 BYTE *const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable_internal()
702 size_t const segmentSize = (dstSize + 3) / 4; in HUF_decompress4X4_usingDTable_internal()
783 return dstSize; in HUF_decompress4X4_usingDTable_internal()
787 size_t HUF_decompress4X4_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress4X4_usingDTable() argument
792 return HUF_decompress4X4_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X4_usingDTable()
795 size_t HUF_decompress4X4_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress4X4_DCtx_wksp() argument
807 return HUF_decompress4X4_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx); in HUF_decompress4X4_DCtx_wksp()
857 U32 HUF_selectDecoder(size_t dstSize, size_t cSrcSize) in HUF_selectDecoder() argument
860 U32 const Q = (U32)(cSrcSize * 16 / dstSize); /* Q < 16 since dstSize > cSrcSize */ in HUF_selectDecoder()
861 U32 const D256 = (U32)(dstSize >> 8); in HUF_selectDecoder()
869 typedef size_t (*decompressionAlgo)(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize);
871 size_t HUF_decompress4X_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, si… in HUF_decompress4X_DCtx_wksp() argument
874 if (dstSize == 0) in HUF_decompress4X_DCtx_wksp()
876 if (cSrcSize > dstSize) in HUF_decompress4X_DCtx_wksp()
878 if (cSrcSize == dstSize) { in HUF_decompress4X_DCtx_wksp()
879 memcpy(dst, cSrc, dstSize); in HUF_decompress4X_DCtx_wksp()
880 return dstSize; in HUF_decompress4X_DCtx_wksp()
883 memset(dst, *(const BYTE *)cSrc, dstSize); in HUF_decompress4X_DCtx_wksp()
884 return dstSize; in HUF_decompress4X_DCtx_wksp()
888 U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress4X_DCtx_wksp()
889 …return algoNb ? HUF_decompress4X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspa… in HUF_decompress4X_DCtx_wksp()
890 … : HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress4X_DCtx_wksp()
894 size_t HUF_decompress4X_hufOnly_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc,… in HUF_decompress4X_hufOnly_wksp() argument
897 if (dstSize == 0) in HUF_decompress4X_hufOnly_wksp()
899 if ((cSrcSize >= dstSize) || (cSrcSize <= 1)) in HUF_decompress4X_hufOnly_wksp()
903 U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress4X_hufOnly_wksp()
904 …return algoNb ? HUF_decompress4X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspa… in HUF_decompress4X_hufOnly_wksp()
905 … : HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress4X_hufOnly_wksp()
909 size_t HUF_decompress1X_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, si… in HUF_decompress1X_DCtx_wksp() argument
912 if (dstSize == 0) in HUF_decompress1X_DCtx_wksp()
914 if (cSrcSize > dstSize) in HUF_decompress1X_DCtx_wksp()
916 if (cSrcSize == dstSize) { in HUF_decompress1X_DCtx_wksp()
917 memcpy(dst, cSrc, dstSize); in HUF_decompress1X_DCtx_wksp()
918 return dstSize; in HUF_decompress1X_DCtx_wksp()
921 memset(dst, *(const BYTE *)cSrc, dstSize); in HUF_decompress1X_DCtx_wksp()
922 return dstSize; in HUF_decompress1X_DCtx_wksp()
926 U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress1X_DCtx_wksp()
927 …return algoNb ? HUF_decompress1X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspa… in HUF_decompress1X_DCtx_wksp()
928 … : HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress1X_DCtx_wksp()