ReactOS 0.4.16-dev-91-g764881a
huf.h
Go to the documentation of this file.
1/* ******************************************************************
2 * huff0 huffman codec,
3 * part of Finite State Entropy library
4 * Copyright (c) 2013-2020, Yann Collet, Facebook, Inc.
5 *
6 * You can contact the author at :
7 * - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
8 *
9 * This source code is licensed under both the BSD-style license (found in the
10 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
11 * in the COPYING file in the root directory of this source tree).
12 * You may select, at your option, one of the above-listed licenses.
13****************************************************************** */
14
15#if defined (__cplusplus)
16extern "C" {
17#endif
18
19#ifndef HUF_H_298734234
20#define HUF_H_298734234
21
22/* *** Dependencies *** */
23#include <stddef.h> /* size_t */
24
25
26/* *** library symbols visibility *** */
27/* Note : when linking with -fvisibility=hidden on gcc, or by default on Visual,
28 * HUF symbols remain "private" (internal symbols for library only).
29 * Set macro FSE_DLL_EXPORT to 1 if you want HUF symbols visible on DLL interface */
30#if defined(FSE_DLL_EXPORT) && (FSE_DLL_EXPORT==1) && defined(__GNUC__) && (__GNUC__ >= 4)
31# define HUF_PUBLIC_API __attribute__ ((visibility ("default")))
32#elif defined(FSE_DLL_EXPORT) && (FSE_DLL_EXPORT==1) /* Visual expected */
33# define HUF_PUBLIC_API __declspec(dllexport)
34#elif defined(FSE_DLL_IMPORT) && (FSE_DLL_IMPORT==1)
35# define HUF_PUBLIC_API __declspec(dllimport) /* not required, just to generate faster code (saves a function pointer load from IAT and an indirect jump) */
36#else
37# define HUF_PUBLIC_API
38#endif
39
40
41/* ========================== */
42/* *** simple functions *** */
43/* ========================== */
44
54HUF_PUBLIC_API size_t HUF_compress(void* dst, size_t dstCapacity,
55 const void* src, size_t srcSize);
56
67HUF_PUBLIC_API size_t HUF_decompress(void* dst, size_t originalSize,
68 const void* cSrc, size_t cSrcSize);
69
70
71/* *** Tool functions *** */
72#define HUF_BLOCKSIZE_MAX (128 * 1024)
75/* Error Management */
76HUF_PUBLIC_API unsigned HUF_isError(size_t code);
77HUF_PUBLIC_API const char* HUF_getErrorName(size_t code);
80/* *** Advanced function *** */
81
86HUF_PUBLIC_API size_t HUF_compress2 (void* dst, size_t dstCapacity,
87 const void* src, size_t srcSize,
88 unsigned maxSymbolValue, unsigned tableLog);
89
93#define HUF_WORKSPACE_SIZE ((6 << 10) + 256)
94#define HUF_WORKSPACE_SIZE_U32 (HUF_WORKSPACE_SIZE / sizeof(U32))
95HUF_PUBLIC_API size_t HUF_compress4X_wksp (void* dst, size_t dstCapacity,
96 const void* src, size_t srcSize,
97 unsigned maxSymbolValue, unsigned tableLog,
98 void* workSpace, size_t wkspSize);
99
100#endif /* HUF_H_298734234 */
101
102/* ******************************************************************
103 * WARNING !!
104 * The following section contains advanced and experimental definitions
105 * which shall never be used in the context of a dynamic library,
106 * because they are not guaranteed to remain stable in the future.
107 * Only consider them in association with static linking.
108 * *****************************************************************/
109#if defined(HUF_STATIC_LINKING_ONLY) && !defined(HUF_H_HUF_STATIC_LINKING_ONLY)
110#define HUF_H_HUF_STATIC_LINKING_ONLY
111
112/* *** Dependencies *** */
113#include "mem.h" /* U32 */
114
115
116/* *** Constants *** */
117#define HUF_TABLELOG_MAX 12 /* max runtime value of tableLog (due to static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG */
118#define HUF_TABLELOG_DEFAULT 11 /* default tableLog value when none specified */
119#define HUF_SYMBOLVALUE_MAX 255
120
121#define HUF_TABLELOG_ABSOLUTEMAX 15 /* absolute limit of HUF_MAX_TABLELOG. Beyond that value, code does not work */
122#if (HUF_TABLELOG_MAX > HUF_TABLELOG_ABSOLUTEMAX)
123# error "HUF_TABLELOG_MAX is too large !"
124#endif
125
126
127/* ****************************************
128* Static allocation
129******************************************/
130/* HUF buffer bounds */
131#define HUF_CTABLEBOUND 129
132#define HUF_BLOCKBOUND(size) (size + (size>>8) + 8) /* only true when incompressible is pre-filtered with fast heuristic */
133#define HUF_COMPRESSBOUND(size) (HUF_CTABLEBOUND + HUF_BLOCKBOUND(size)) /* Macro version, useful for static allocation */
134
135/* static allocation of HUF's Compression Table */
136#define HUF_CTABLE_SIZE_U32(maxSymbolValue) ((maxSymbolValue)+1) /* Use tables of U32, for proper alignment */
137#define HUF_CTABLE_SIZE(maxSymbolValue) (HUF_CTABLE_SIZE_U32(maxSymbolValue) * sizeof(U32))
138#define HUF_CREATE_STATIC_CTABLE(name, maxSymbolValue) \
139 U32 name##hb[HUF_CTABLE_SIZE_U32(maxSymbolValue)]; \
140 void* name##hv = &(name##hb); \
141 HUF_CElt* name = (HUF_CElt*)(name##hv) /* no final ; */
142
143/* static allocation of HUF's DTable */
144typedef U32 HUF_DTable;
145#define HUF_DTABLE_SIZE(maxTableLog) (1 + (1<<(maxTableLog)))
146#define HUF_CREATE_STATIC_DTABLEX1(DTable, maxTableLog) \
147 HUF_DTable DTable[HUF_DTABLE_SIZE((maxTableLog)-1)] = { ((U32)((maxTableLog)-1) * 0x01000001) }
148#define HUF_CREATE_STATIC_DTABLEX2(DTable, maxTableLog) \
149 HUF_DTable DTable[HUF_DTABLE_SIZE(maxTableLog)] = { ((U32)(maxTableLog) * 0x01000001) }
150
151
152/* ****************************************
153* Advanced decompression functions
154******************************************/
155size_t HUF_decompress4X1 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize);
156#ifndef HUF_FORCE_DECOMPRESS_X1
157size_t HUF_decompress4X2 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize);
158#endif
159
160size_t HUF_decompress4X_DCtx (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize);
161size_t HUF_decompress4X_hufOnly(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize);
162size_t HUF_decompress4X_hufOnly_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize);
163size_t HUF_decompress4X1_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize);
164size_t HUF_decompress4X1_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize);
165#ifndef HUF_FORCE_DECOMPRESS_X1
166size_t HUF_decompress4X2_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize);
167size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize);
168#endif
169
170
171/* ****************************************
172 * HUF detailed API
173 * ****************************************/
174
186unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue);
187typedef struct HUF_CElt_s HUF_CElt; /* incomplete type */
188size_t HUF_buildCTable (HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue, unsigned maxNbBits); /* @return : maxNbBits; CTable and count can overlap. In which case, CTable will overwrite count content */
189size_t HUF_writeCTable (void* dst, size_t maxDstSize, const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog);
190size_t HUF_compress4X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable);
191size_t HUF_estimateCompressedSize(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue);
192int HUF_validateCTable(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue);
193
194typedef enum {
195 HUF_repeat_none,
196 HUF_repeat_check,
197 HUF_repeat_valid
198 } HUF_repeat;
204size_t HUF_compress4X_repeat(void* dst, size_t dstSize,
205 const void* src, size_t srcSize,
206 unsigned maxSymbolValue, unsigned tableLog,
207 void* workSpace, size_t wkspSize,
208 HUF_CElt* hufTable, HUF_repeat* repeat, int preferRepeat, int bmi2);
209
214#define HUF_CTABLE_WORKSPACE_SIZE_U32 (2*HUF_SYMBOLVALUE_MAX +1 +1)
215#define HUF_CTABLE_WORKSPACE_SIZE (HUF_CTABLE_WORKSPACE_SIZE_U32 * sizeof(unsigned))
216size_t HUF_buildCTable_wksp (HUF_CElt* tree,
217 const unsigned* count, U32 maxSymbolValue, U32 maxNbBits,
218 void* workSpace, size_t wkspSize);
219
225size_t HUF_readStats(BYTE* huffWeight, size_t hwSize,
226 U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr,
227 const void* src, size_t srcSize);
228
231size_t HUF_readCTable (HUF_CElt* CTable, unsigned* maxSymbolValuePtr, const void* src, size_t srcSize, unsigned *hasZeroWeights);
232
237U32 HUF_getNbBits(const void* symbolTable, U32 symbolValue);
238
239/*
240 * HUF_decompress() does the following:
241 * 1. select the decompression algorithm (X1, X2) based on pre-computed heuristics
242 * 2. build Huffman table from save, using HUF_readDTableX?()
243 * 3. decode 1 or 4 segments in parallel using HUF_decompress?X?_usingDTable()
244 */
245
251U32 HUF_selectDecoder (size_t dstSize, size_t cSrcSize);
252
263#define HUF_DECOMPRESS_WORKSPACE_SIZE (2 << 10)
264#define HUF_DECOMPRESS_WORKSPACE_SIZE_U32 (HUF_DECOMPRESS_WORKSPACE_SIZE / sizeof(U32))
265
266#ifndef HUF_FORCE_DECOMPRESS_X2
267size_t HUF_readDTableX1 (HUF_DTable* DTable, const void* src, size_t srcSize);
268size_t HUF_readDTableX1_wksp (HUF_DTable* DTable, const void* src, size_t srcSize, void* workSpace, size_t wkspSize);
269#endif
270#ifndef HUF_FORCE_DECOMPRESS_X1
271size_t HUF_readDTableX2 (HUF_DTable* DTable, const void* src, size_t srcSize);
272size_t HUF_readDTableX2_wksp (HUF_DTable* DTable, const void* src, size_t srcSize, void* workSpace, size_t wkspSize);
273#endif
274
275size_t HUF_decompress4X_usingDTable(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable);
276#ifndef HUF_FORCE_DECOMPRESS_X2
277size_t HUF_decompress4X1_usingDTable(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable);
278#endif
279#ifndef HUF_FORCE_DECOMPRESS_X1
280size_t HUF_decompress4X2_usingDTable(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable);
281#endif
282
283
284/* ====================== */
285/* single stream variants */
286/* ====================== */
287
288size_t HUF_compress1X (void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog);
289size_t HUF_compress1X_wksp (void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize);
290size_t HUF_compress1X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable);
296size_t HUF_compress1X_repeat(void* dst, size_t dstSize,
297 const void* src, size_t srcSize,
298 unsigned maxSymbolValue, unsigned tableLog,
299 void* workSpace, size_t wkspSize,
300 HUF_CElt* hufTable, HUF_repeat* repeat, int preferRepeat, int bmi2);
301
302size_t HUF_decompress1X1 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize); /* single-symbol decoder */
303#ifndef HUF_FORCE_DECOMPRESS_X1
304size_t HUF_decompress1X2 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize); /* double-symbol decoder */
305#endif
306
307size_t HUF_decompress1X_DCtx (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize);
308size_t HUF_decompress1X_DCtx_wksp (HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize);
309#ifndef HUF_FORCE_DECOMPRESS_X2
310size_t HUF_decompress1X1_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize);
311size_t HUF_decompress1X1_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize);
312#endif
313#ifndef HUF_FORCE_DECOMPRESS_X1
314size_t HUF_decompress1X2_DCtx(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize);
315size_t HUF_decompress1X2_DCtx_wksp(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize);
316#endif
317
318size_t HUF_decompress1X_usingDTable(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable);
319#ifndef HUF_FORCE_DECOMPRESS_X2
320size_t HUF_decompress1X1_usingDTable(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable);
321#endif
322#ifndef HUF_FORCE_DECOMPRESS_X1
323size_t HUF_decompress1X2_usingDTable(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable);
324#endif
325
326/* BMI2 variants.
327 * If the CPU has BMI2 support, pass bmi2=1, otherwise pass bmi2=0.
328 */
329size_t HUF_decompress1X_usingDTable_bmi2(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable, int bmi2);
330#ifndef HUF_FORCE_DECOMPRESS_X2
331size_t HUF_decompress1X1_DCtx_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize, int bmi2);
332#endif
333size_t HUF_decompress4X_usingDTable_bmi2(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable, int bmi2);
334size_t HUF_decompress4X_hufOnly_wksp_bmi2(HUF_DTable* dctx, void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize, int bmi2);
335
336#endif /* HUF_STATIC_LINKING_ONLY */
337
338#if defined (__cplusplus)
339}
340#endif
size_t HUF_readStats(BYTE *huffWeight, size_t hwSize, U32 *rankStats, U32 *nbSymbolsPtr, U32 *tableLogPtr, const void *src, size_t srcSize)
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizeiptr size
Definition: glext.h:5919
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
HUF_PUBLIC_API size_t HUF_compressBound(size_t size)
Definition: huf_compress.c:441
HUF_PUBLIC_API size_t HUF_decompress(void *dst, size_t originalSize, const void *cSrc, size_t cSrcSize)
#define HUF_PUBLIC_API
Definition: huf.h:37
HUF_PUBLIC_API size_t HUF_compress4X_wksp(void *dst, size_t dstCapacity, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, size_t wkspSize)
Definition: huf_compress.c:761
HUF_PUBLIC_API const char * HUF_getErrorName(size_t code)
HUF_PUBLIC_API size_t HUF_compress2(void *dst, size_t dstCapacity, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog)
Definition: huf_compress.c:787
HUF_PUBLIC_API size_t HUF_compress(void *dst, size_t dstCapacity, const void *src, size_t srcSize)
Definition: huf_compress.c:795
size_t HUF_compress1X(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog)
Definition: huf_compress.c:750
size_t HUF_compress4X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace, size_t wkspSize, HUF_CElt *hufTable, HUF_repeat *repeat, int preferRepeat, int bmi2)
Definition: huf_compress.c:775
int HUF_validateCTable(const HUF_CElt *CTable, const unsigned *count, unsigned maxSymbolValue)
Definition: huf_compress.c:432
size_t HUF_compress4X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable)
Definition: huf_compress.c:605
unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue)
Definition: huf_compress.c:48
size_t HUF_buildCTable(HUF_CElt *tree, const unsigned *count, unsigned maxSymbolValue, unsigned maxNbBits)
Definition: huf_compress.c:416
size_t HUF_writeCTable(void *dst, size_t maxDstSize, const HUF_CElt *CTable, unsigned maxSymbolValue, unsigned huffLog)
Definition: huf_compress.c:114
size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable)
Definition: huf_compress.c:546
U32 HUF_getNbBits(const void *symbolTable, U32 symbolValue)
Definition: huf_compress.c:200
size_t HUF_estimateCompressedSize(const HUF_CElt *CTable, const unsigned *count, unsigned maxSymbolValue)
Definition: huf_compress.c:422
size_t HUF_compress1X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace, size_t wkspSize)
Definition: huf_compress.c:727
size_t HUF_buildCTable_wksp(HUF_CElt *tree, const unsigned *count, U32 maxSymbolValue, U32 maxNbBits, void *workSpace, size_t wkspSize)
Definition: huf_compress.c:338
#define HUF_isError
Definition: huf_compress.c:41
size_t HUF_readCTable(HUF_CElt *CTable, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize, unsigned *hasZeroWeights)
Definition: huf_compress.c:150
size_t HUF_compress1X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace, size_t wkspSize, HUF_CElt *hufTable, HUF_repeat *repeat, int preferRepeat, int bmi2)
Definition: huf_compress.c:738
size_t HUF_decompress1X_usingDTable_bmi2(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable, int bmi2)
size_t HUF_decompress4X_usingDTable(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable)
size_t HUF_readDTableX1_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workSpace, size_t wkspSize)
size_t HUF_readDTableX2(HUF_DTable *DTable, const void *src, size_t srcSize)
size_t HUF_decompress1X_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workSpace, size_t wkspSize)
size_t HUF_decompress1X2_DCtx_wksp(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workSpace, size_t wkspSize)
size_t HUF_decompress4X_DCtx(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_decompress1X_DCtx(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
U32 HUF_selectDecoder(size_t dstSize, size_t cSrcSize)
size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workSpace, size_t wkspSize)
size_t HUF_decompress4X_usingDTable_bmi2(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable, int bmi2)
size_t HUF_decompress1X1(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_decompress1X2_DCtx(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_decompress4X2(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_decompress4X_hufOnly_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workSpace, size_t wkspSize)
size_t HUF_decompress4X1(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_decompress1X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable)
size_t HUF_decompress4X2_DCtx(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_decompress1X1_DCtx(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_decompress1X2(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_decompress1X1_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable)
size_t HUF_readDTableX2_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workSpace, size_t wkspSize)
size_t HUF_decompress4X1_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable)
size_t HUF_decompress1X1_DCtx_wksp_bmi2(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workSpace, size_t wkspSize, int bmi2)
size_t HUF_decompress4X1_DCtx(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_decompress4X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable)
size_t HUF_decompress4X1_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workSpace, size_t wkspSize)
size_t HUF_decompress4X_hufOnly(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize)
size_t HUF_readDTableX1(HUF_DTable *DTable, const void *src, size_t srcSize)
size_t HUF_decompress1X_usingDTable(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable)
size_t HUF_decompress1X1_DCtx_wksp(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workSpace, size_t wkspSize)
size_t HUF_decompress4X_hufOnly_wksp_bmi2(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workSpace, size_t wkspSize, int bmi2)
Definition: inflate.c:139
static int repeat
Definition: xmllint.c:137
unsigned char BYTE
Definition: xxhash.c:193
unsigned int U32
Definition: xxhash.c:195