diff --git a/ThirdParty/Lizard/lizard_compress.c b/ThirdParty/Lizard/lizard_compress.c index fbe38a757..9d12ce5a4 100644 --- a/ThirdParty/Lizard/lizard_compress.c +++ b/ThirdParty/Lizard/lizard_compress.c @@ -51,6 +51,15 @@ #include "lizard_compress_lz4.h" #include +#define HUF_WORKSPACE_SIZE_U32 (HUF_WORKSPACE_SIZE / 4) +static inline size_t HUF_compress(void* dst, size_t dstSize, const void* src, size_t srcSize) +{ + unsigned workSpace[HUF_WORKSPACE_SIZE_U32]; + return HUF_compress1X_repeat(dst, dstSize, src, srcSize, + HUF_SYMBOLVALUE_MAX, HUF_TABLELOG_DEFAULT, + workSpace, sizeof(workSpace), + NULL, NULL, 0); +} /* ************************************* * Local Macros diff --git a/ThirdParty/Lizard/lizard_decompress.c b/ThirdParty/Lizard/lizard_decompress.c index a0c37cb2e..29b431fb4 100644 --- a/ThirdParty/Lizard/lizard_decompress.c +++ b/ThirdParty/Lizard/lizard_decompress.c @@ -64,6 +64,10 @@ typedef enum { full = 0, partial = 1 } earlyEnd_directive; #endif #include +static inline size_t HUF_decompress(void* dst, size_t maxDstSize, const void* src, size_t srcSize) +{ + return HUF_decompress1X_usingDTable(dst, maxDstSize, src, srcSize, NULL, 0); +} /*-***************************** * Decompression functions