xref: /freebsd/sys/contrib/openzfs/module/zstd/include/zstd_compat_wrapper.h (revision fe6060f10f634930ff71b7c50291ddc610da2475)
1 /*
2  * BSD 3-Clause New License (https://spdx.org/licenses/BSD-3-Clause.html)
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *
7  * 1. Redistributions of source code must retain the above copyright notice,
8  * this list of conditions and the following disclaimer.
9  *
10  * 2. Redistributions in binary form must reproduce the above copyright notice,
11  * this list of conditions and the following disclaimer in the documentation
12  * and/or other materials provided with the distribution.
13  *
14  * 3. Neither the name of the copyright holder nor the names of its
15  * contributors may be used to endorse or promote products derived from this
16  * software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28  * POSSIBILITY OF SUCH DAMAGE.
29  */
30 
31 /*
32  * Copyright (c) 2020, Sebastian Gottschall
33  */
34 
35 /*
36  * This wrapper fixes a problem, in case the ZFS filesystem driver, is compiled
37  * statically into the kernel.
38  * This will cause a symbol collision with the older in-kernel zstd library.
39  * The following macros will simply rename all local zstd symbols and references
40  *
41  * Note: if the zstd library for zfs is updated to a newer version, this macro
42  * list usually needs to be updated.
43  * this can be done with some hand crafting of the output of the following
44  * script
45  * nm zstd.o | awk '{print "#define "$3 " zfs_" $3}' > macrotable
46  */
47 
48 #define	BIT_initDStream zfs_BIT_initDStream
49 #define	BIT_mask zfs_BIT_mask
50 #define	BIT_reloadDStream zfs_BIT_reloadDStream
51 #define	ERR_getErrorString zfs_ERR_getErrorString
52 #define	FSE_NCountWriteBound zfs_FSE_NCountWriteBound
53 #define	FSE_buildCTable zfs_FSE_buildCTable
54 #define	FSE_buildCTable_raw zfs_FSE_buildCTable_raw
55 #define	FSE_buildCTable_rle zfs_FSE_buildCTable_rle
56 #define	FSE_buildCTable_wksp zfs_FSE_buildCTable_wksp
57 #define	FSE_buildDTable zfs_FSE_buildDTable
58 #define	FSE_buildDTable_raw zfs_FSE_buildDTable_raw
59 #define	FSE_buildDTable_rle zfs_FSE_buildDTable_rle
60 #define	FSE_compress zfs_FSE_compress
61 #define	FSE_compress2 zfs_FSE_compress2
62 #define	FSE_compressBound zfs_FSE_compressBound
63 #define	FSE_compress_usingCTable zfs_FSE_compress_usingCTable
64 #define	FSE_compress_usingCTable_generic zfs_FSE_compress_usingCTable_generic
65 #define	FSE_compress_wksp zfs_FSE_compress_wksp
66 #define	FSE_createCTable zfs_FSE_createCTable
67 #define	FSE_createDTable zfs_FSE_createDTable
68 #define	FSE_decompress zfs_FSE_decompress
69 #define	FSE_decompress_usingDTable zfs_FSE_decompress_usingDTable
70 #define	FSE_decompress_wksp zfs_FSE_decompress_wksp
71 #define	FSE_freeCTable zfs_FSE_freeCTable
72 #define	FSE_freeDTable zfs_FSE_freeDTable
73 #define	FSE_getErrorName zfs_FSE_getErrorName
74 #define	FSE_normalizeCount zfs_FSE_normalizeCount
75 #define	FSE_optimalTableLog zfs_FSE_optimalTableLog
76 #define	FSE_optimalTableLog_internal zfs_FSE_optimalTableLog_internal
77 #define	FSE_readNCount zfs_FSE_readNCount
78 #define	FSE_versionNumber zfs_FSE_versionNumber
79 #define	FSE_writeNCount zfs_FSE_writeNCount
80 #define	HIST_count zfs_HIST_count
81 #define	HIST_countFast zfs_HIST_countFast
82 #define	HIST_countFast_wksp zfs_HIST_countFast_wksp
83 #define	HIST_count_parallel_wksp zfs_HIST_count_parallel_wksp
84 #define	HIST_count_simple zfs_HIST_count_simple
85 #define	HIST_count_wksp zfs_HIST_count_wksp
86 #define	HUF_buildCTable zfs_HUF_buildCTable
87 #define	HUF_buildCTable_wksp zfs_HUF_buildCTable_wksp
88 #define	HUF_compress zfs_HUF_compress
89 #define	HUF_compress1X zfs_HUF_compress1X
90 #define	HUF_compress1X_repeat zfs_HUF_compress1X_repeat
91 #define	HUF_compress1X_usingCTable zfs_HUF_compress1X_usingCTable
92 #define	HUF_compress1X_wksp zfs_HUF_compress1X_wksp
93 #define	HUF_compress2 zfs_HUF_compress2
94 #define	HUF_compress4X_repeat zfs_HUF_compress4X_repeat
95 #define	HUF_compress4X_usingCTable zfs_HUF_compress4X_usingCTable
96 #define	HUF_compress4X_wksp zfs_HUF_compress4X_wksp
97 #define	HUF_compressBound zfs_HUF_compressBound
98 #define	HUF_compressWeights zfs_HUF_compressWeights
99 #define	HUF_decompress zfs_HUF_decompress
100 #define	HUF_decompress1X1 zfs_HUF_decompress1X1
101 #define	HUF_decompress1X1_DCtx zfs_HUF_decompress1X1_DCtx
102 #define	HUF_decompress1X1_DCtx_wksp zfs_HUF_decompress1X1_DCtx_wksp
103 #define	HUF_decompress1X1_DCtx_wksp_bmi2 zfs_HUF_decompress1X1_DCtx_wksp_bmi2
104 #define	HUF_decompress1X1_usingDTable zfs_HUF_decompress1X1_usingDTable
105 #define	HUF_decompress1X2 zfs_HUF_decompress1X2
106 #define	HUF_decompress1X2_DCtx zfs_HUF_decompress1X2_DCtx
107 #define	HUF_decompress1X2_DCtx_wksp zfs_HUF_decompress1X2_DCtx_wksp
108 #define	HUF_decompress1X2_usingDTable zfs_HUF_decompress1X2_usingDTable
109 #define	HUF_decompress1X_DCtx zfs_HUF_decompress1X_DCtx
110 #define	HUF_decompress1X_DCtx_wksp zfs_HUF_decompress1X_DCtx_wksp
111 #define	HUF_decompress1X_usingDTable zfs_HUF_decompress1X_usingDTable
112 #define	HUF_decompress1X_usingDTable_bmi2 zfs_HUF_decompress1X_usingDTable_bmi2
113 #define	HUF_decompress4X1 zfs_HUF_decompress4X1
114 #define	HUF_decompress4X1_DCtx zfs_HUF_decompress4X1_DCtx
115 #define	HUF_decompress4X1_DCtx_wksp zfs_HUF_decompress4X1_DCtx_wksp
116 #define	HUF_decompress4X1_usingDTable zfs_HUF_decompress4X1_usingDTable
117 #define	HUF_decompress4X2 zfs_HUF_decompress4X2
118 #define	HUF_decompress4X2_DCtx zfs_HUF_decompress4X2_DCtx
119 #define	HUF_decompress4X2_DCtx_wksp zfs_HUF_decompress4X2_DCtx_wksp
120 #define	HUF_decompress4X2_usingDTable zfs_HUF_decompress4X2_usingDTable
121 #define	HUF_decompress4X_DCtx zfs_HUF_decompress4X_DCtx
122 #define	HUF_decompress4X_hufOnly zfs_HUF_decompress4X_hufOnly
123 #define	HUF_decompress4X_hufOnly_wksp zfs_HUF_decompress4X_hufOnly_wksp
124 #define	HUF_decompress4X_hufOnly_wksp_bmi2 \
125 	zfs_HUF_decompress4X_hufOnly_wksp_bmi2
126 #define	HUF_decompress4X_usingDTable zfs_HUF_decompress4X_usingDTable
127 #define	HUF_decompress4X_usingDTable_bmi2 zfs_HUF_decompress4X_usingDTable_bmi2
128 #define	HUF_estimateCompressedSize zfs_HUF_estimateCompressedSize
129 #define	HUF_fillDTableX2Level2 zfs_HUF_fillDTableX2Level2
130 #define	HUF_getErrorName zfs_HUF_getErrorName
131 #define	HUF_getNbBits zfs_HUF_getNbBits
132 #define	HUF_optimalTableLog zfs_HUF_optimalTableLog
133 #define	HUF_readCTable zfs_HUF_readCTable
134 #define	HUF_readDTableX1 zfs_HUF_readDTableX1
135 #define	HUF_readDTableX1_wksp zfs_HUF_readDTableX1_wksp
136 #define	HUF_readDTableX2 zfs_HUF_readDTableX2
137 #define	HUF_readDTableX2_wksp zfs_HUF_readDTableX2_wksp
138 #define	HUF_readStats zfs_HUF_readStats
139 #define	HUF_selectDecoder zfs_HUF_selectDecoder
140 #define	HUF_setMaxHeight zfs_HUF_setMaxHeight
141 #define	HUF_validateCTable zfs_HUF_validateCTable
142 #define	HUF_writeCTable zfs_HUF_writeCTable
143 #define	LL_base zfs_LL_base
144 #define	LL_bits zfs_LL_bits
145 #define	LL_defaultDTable zfs_LL_defaultDTable
146 #define	LL_defaultNorm zfs_LL_defaultNorm
147 #define	ML_base zfs_ML_base
148 #define	ML_bits zfs_ML_bits
149 #define	ML_defaultDTable zfs_ML_defaultDTable
150 #define	ML_defaultNorm zfs_ML_defaultNorm
151 #define	OF_base zfs_OF_base
152 #define	OF_bits zfs_OF_bits
153 #define	OF_defaultDTable zfs_OF_defaultDTable
154 #define	OF_defaultNorm zfs_OF_defaultNorm
155 #define	POOL_add zfs_POOL_add
156 #define	POOL_create zfs_POOL_create
157 #define	POOL_create_advanced zfs_POOL_create_advanced
158 #define	POOL_free zfs_POOL_free
159 #define	POOL_resize zfs_POOL_resize
160 #define	POOL_sizeof zfs_POOL_sizeof
161 #define	POOL_tryAdd zfs_POOL_tryAdd
162 #define	ZSTD_CCtxParams_getParameter zfs_ZSTD_CCtxParams_getParameter
163 #define	ZSTD_CCtxParams_init zfs_ZSTD_CCtxParams_init
164 #define	ZSTD_CCtxParams_init_advanced zfs_ZSTD_CCtxParams_init_advanced
165 #define	ZSTD_CCtxParams_reset zfs_ZSTD_CCtxParams_reset
166 #define	ZSTD_CCtxParams_setParameter zfs_ZSTD_CCtxParams_setParameter
167 #define	ZSTD_CCtx_getParameter zfs_ZSTD_CCtx_getParameter
168 #define	ZSTD_CCtx_loadDictionary zfs_ZSTD_CCtx_loadDictionary
169 #define	ZSTD_CCtx_loadDictionary_advanced zfs_ZSTD_CCtx_loadDictionary_advanced
170 #define	ZSTD_CCtx_loadDictionary_byReference \
171 	zfs_ZSTD_CCtx_loadDictionary_byReference
172 #define	ZSTD_CCtx_refCDict zfs_ZSTD_CCtx_refCDict
173 #define	ZSTD_CCtx_refPrefix zfs_ZSTD_CCtx_refPrefix
174 #define	ZSTD_CCtx_refPrefix_advanced zfs_ZSTD_CCtx_refPrefix_advanced
175 #define	ZSTD_CCtx_reset zfs_ZSTD_CCtx_reset
176 #define	ZSTD_CCtx_setParameter zfs_ZSTD_CCtx_setParameter
177 #define	ZSTD_CCtx_setParametersUsingCCtxParams \
178 	zfs_ZSTD_CCtx_setParametersUsingCCtxParams
179 #define	ZSTD_CCtx_setPledgedSrcSize zfs_ZSTD_CCtx_setPledgedSrcSize
180 #define	ZSTD_CStreamInSize zfs_ZSTD_CStreamInSize
181 #define	ZSTD_CStreamOutSize zfs_ZSTD_CStreamOutSize
182 #define	ZSTD_DCtx_loadDictionary zfs_ZSTD_DCtx_loadDictionary
183 #define	ZSTD_DCtx_loadDictionary_advanced zfs_ZSTD_DCtx_loadDictionary_advanced
184 #define	ZSTD_DCtx_loadDictionary_byReference \
185 	zfs_ZSTD_DCtx_loadDictionary_byReference
186 #define	ZSTD_DCtx_refDDict zfs_ZSTD_DCtx_refDDict
187 #define	ZSTD_DCtx_refPrefix zfs_ZSTD_DCtx_refPrefix
188 #define	ZSTD_DCtx_refPrefix_advanced zfs_ZSTD_DCtx_refPrefix_advanced
189 #define	ZSTD_DCtx_reset zfs_ZSTD_DCtx_reset
190 #define	ZSTD_DCtx_setFormat zfs_ZSTD_DCtx_setFormat
191 #define	ZSTD_DCtx_setMaxWindowSize zfs_ZSTD_DCtx_setMaxWindowSize
192 #define	ZSTD_DCtx_setParameter zfs_ZSTD_DCtx_setParameter
193 #define	ZSTD_DDict_dictContent zfs_ZSTD_DDict_dictContent
194 #define	ZSTD_DDict_dictSize zfs_ZSTD_DDict_dictSize
195 #define	ZSTD_DStreamInSize zfs_ZSTD_DStreamInSize
196 #define	ZSTD_DStreamOutSize zfs_ZSTD_DStreamOutSize
197 #define	ZSTD_DUBT_findBestMatch zfs_ZSTD_DUBT_findBestMatch
198 #define	ZSTD_NCountCost zfs_ZSTD_NCountCost
199 #define	ZSTD_XXH64_digest zfs_ZSTD_XXH64_digest
200 #define	ZSTD_adjustCParams zfs_ZSTD_adjustCParams
201 #define	ZSTD_assignParamsToCCtxParams zfs_ZSTD_assignParamsToCCtxParams
202 #define	ZSTD_buildCTable zfs_ZSTD_buildCTable
203 #define	ZSTD_buildFSETable zfs_ZSTD_buildFSETable
204 #define	ZSTD_buildSeqStore zfs_ZSTD_buildSeqStore
205 #define	ZSTD_buildSeqTable zfs_ZSTD_buildSeqTable
206 #define	ZSTD_cParam_getBounds zfs_ZSTD_cParam_getBounds
207 #define	ZSTD_cParam_withinBounds zfs_ZSTD_cParam_withinBounds
208 #define	ZSTD_calloc zfs_ZSTD_calloc
209 #define	ZSTD_checkCParams zfs_ZSTD_checkCParams
210 #define	ZSTD_checkContinuity zfs_ZSTD_checkContinuity
211 #define	ZSTD_compress zfs_ZSTD_compress
212 #define	ZSTD_compress2 zfs_ZSTD_compress2
213 #define	ZSTD_compressBegin zfs_ZSTD_compressBegin
214 #define	ZSTD_compressBegin_advanced zfs_ZSTD_compressBegin_advanced
215 #define	ZSTD_compressBegin_advanced_internal \
216 	zfs_ZSTD_compressBegin_advanced_internal
217 #define	ZSTD_compressBegin_usingCDict zfs_ZSTD_compressBegin_usingCDict
218 #define	ZSTD_compressBegin_usingCDict_advanced \
219 	zfs_ZSTD_compressBegin_usingCDict_advanced
220 #define	ZSTD_compressBegin_usingDict zfs_ZSTD_compressBegin_usingDict
221 #define	ZSTD_compressBlock zfs_ZSTD_compressBlock
222 #define	ZSTD_compressBlock_btlazy2 zfs_ZSTD_compressBlock_btlazy2
223 #define	ZSTD_compressBlock_btlazy2_dictMatchState \
224 	zfs_ZSTD_compressBlock_btlazy2_dictMatchState
225 #define	ZSTD_compressBlock_btlazy2_extDict \
226 	zfs_ZSTD_compressBlock_btlazy2_extDict
227 #define	ZSTD_compressBlock_btopt zfs_ZSTD_compressBlock_btopt
228 #define	ZSTD_compressBlock_btopt_dictMatchState \
229 	zfs_ZSTD_compressBlock_btopt_dictMatchState
230 #define	ZSTD_compressBlock_btopt_extDict zfs_ZSTD_compressBlock_btopt_extDict
231 #define	ZSTD_compressBlock_btultra zfs_ZSTD_compressBlock_btultra
232 #define	ZSTD_compressBlock_btultra2 zfs_ZSTD_compressBlock_btultra2
233 #define	ZSTD_compressBlock_btultra_dictMatchState \
234 	zfs_ZSTD_compressBlock_btultra_dictMatchState
235 #define	ZSTD_compressBlock_btultra_extDict \
236 	zfs_ZSTD_compressBlock_btultra_extDict
237 #define	ZSTD_compressBlock_doubleFast zfs_ZSTD_compressBlock_doubleFast
238 #define	ZSTD_compressBlock_doubleFast_dictMatchState \
239 	zfs_ZSTD_compressBlock_doubleFast_dictMatchState
240 #define	ZSTD_compressBlock_doubleFast_extDict \
241 	zfs_ZSTD_compressBlock_doubleFast_extDict
242 #define	ZSTD_compressBlock_doubleFast_extDict_generic \
243 	zfs_ZSTD_compressBlock_doubleFast_extDict_generic
244 #define	ZSTD_compressBlock_fast zfs_ZSTD_compressBlock_fast
245 #define	ZSTD_compressBlock_fast_dictMatchState \
246 	zfs_ZSTD_compressBlock_fast_dictMatchState
247 #define	ZSTD_compressBlock_fast_extDict zfs_ZSTD_compressBlock_fast_extDict
248 #define	ZSTD_compressBlock_fast_extDict_generic \
249 	zfs_ZSTD_compressBlock_fast_extDict_generic
250 #define	ZSTD_compressBlock_greedy zfs_ZSTD_compressBlock_greedy
251 #define	ZSTD_compressBlock_greedy_dictMatchState \
252 	zfs_ZSTD_compressBlock_greedy_dictMatchState
253 #define	ZSTD_compressBlock_greedy_extDict zfs_ZSTD_compressBlock_greedy_extDict
254 #define	ZSTD_compressBlock_internal zfs_ZSTD_compressBlock_internal
255 #define	ZSTD_compressBlock_lazy zfs_ZSTD_compressBlock_lazy
256 #define	ZSTD_compressBlock_lazy2 zfs_ZSTD_compressBlock_lazy2
257 #define	ZSTD_compressBlock_lazy2_dictMatchState \
258 	zfs_ZSTD_compressBlock_lazy2_dictMatchState
259 #define	ZSTD_compressBlock_lazy2_extDict zfs_ZSTD_compressBlock_lazy2_extDict
260 #define	ZSTD_compressBlock_lazy_dictMatchState \
261 	zfs_ZSTD_compressBlock_lazy_dictMatchState
262 #define	ZSTD_compressBlock_lazy_extDict zfs_ZSTD_compressBlock_lazy_extDict
263 #define	ZSTD_compressBound zfs_ZSTD_compressBound
264 #define	ZSTD_compressCCtx zfs_ZSTD_compressCCtx
265 #define	ZSTD_compressContinue zfs_ZSTD_compressContinue
266 #define	ZSTD_compressContinue_internal zfs_ZSTD_compressContinue_internal
267 #define	ZSTD_compressEnd zfs_ZSTD_compressEnd
268 #define	ZSTD_compressLiterals zfs_ZSTD_compressLiterals
269 #define	ZSTD_compressRleLiteralsBlock zfs_ZSTD_compressRleLiteralsBlock
270 #define	ZSTD_compressStream zfs_ZSTD_compressStream
271 #define	ZSTD_compressStream2 zfs_ZSTD_compressStream2
272 #define	ZSTD_compressStream2_simpleArgs zfs_ZSTD_compressStream2_simpleArgs
273 #define	ZSTD_compressSuperBlock zfs_ZSTD_compressSuperBlock
274 #define	ZSTD_compress_advanced zfs_ZSTD_compress_advanced
275 #define	ZSTD_compress_advanced_internal zfs_ZSTD_compress_advanced_internal
276 #define	ZSTD_compress_internal zfs_ZSTD_compress_internal
277 #define	ZSTD_compress_usingCDict zfs_ZSTD_compress_usingCDict
278 #define	ZSTD_compress_usingCDict_advanced zfs_ZSTD_compress_usingCDict_advanced
279 #define	ZSTD_compress_usingDict zfs_ZSTD_compress_usingDict
280 #define	ZSTD_copyCCtx zfs_ZSTD_copyCCtx
281 #define	ZSTD_copyDCtx zfs_ZSTD_copyDCtx
282 #define	ZSTD_copyDDictParameters zfs_ZSTD_copyDDictParameters
283 #define	ZSTD_count zfs_ZSTD_count
284 #define	ZSTD_count_2segments zfs_ZSTD_count_2segments
285 #define	ZSTD_createCCtx zfs_ZSTD_createCCtx
286 #define	ZSTD_createCCtxParams zfs_ZSTD_createCCtxParams
287 #define	ZSTD_createCCtx_advanced zfs_ZSTD_createCCtx_advanced
288 #define	ZSTD_createCDict zfs_ZSTD_createCDict
289 #define	ZSTD_createCDict_advanced zfs_ZSTD_createCDict_advanced
290 #define	ZSTD_createCDict_byReference zfs_ZSTD_createCDict_byReference
291 #define	ZSTD_createCStream zfs_ZSTD_createCStream
292 #define	ZSTD_createCStream_advanced zfs_ZSTD_createCStream_advanced
293 #define	ZSTD_createDCtx zfs_ZSTD_createDCtx
294 #define	ZSTD_createDCtx_advanced zfs_ZSTD_createDCtx_advanced
295 #define	ZSTD_createDDict zfs_ZSTD_createDDict
296 #define	ZSTD_createDDict_advanced zfs_ZSTD_createDDict_advanced
297 #define	ZSTD_createDDict_byReference zfs_ZSTD_createDDict_byReference
298 #define	ZSTD_createDStream zfs_ZSTD_createDStream
299 #define	ZSTD_createDStream_advanced zfs_ZSTD_createDStream_advanced
300 #define	ZSTD_crossEntropyCost zfs_ZSTD_crossEntropyCost
301 #define	ZSTD_cycleLog zfs_ZSTD_cycleLog
302 #define	ZSTD_dParam_getBounds zfs_ZSTD_dParam_getBounds
303 #define	ZSTD_decodeLiteralsBlock zfs_ZSTD_decodeLiteralsBlock
304 #define	ZSTD_decodeSeqHeaders zfs_ZSTD_decodeSeqHeaders
305 #define	ZSTD_decodingBufferSize_min zfs_ZSTD_decodingBufferSize_min
306 #define	ZSTD_decompress zfs_ZSTD_decompress
307 #define	ZSTD_decompressBegin zfs_ZSTD_decompressBegin
308 #define	ZSTD_decompressBegin_usingDDict zfs_ZSTD_decompressBegin_usingDDict
309 #define	ZSTD_decompressBegin_usingDict zfs_ZSTD_decompressBegin_usingDict
310 #define	ZSTD_decompressBlock zfs_ZSTD_decompressBlock
311 #define	ZSTD_decompressBlock_internal zfs_ZSTD_decompressBlock_internal
312 #define	ZSTD_decompressBound zfs_ZSTD_decompressBound
313 #define	ZSTD_decompressContinue zfs_ZSTD_decompressContinue
314 #define	ZSTD_decompressContinueStream zfs_ZSTD_decompressContinueStream
315 #define	ZSTD_decompressDCtx zfs_ZSTD_decompressDCtx
316 #define	ZSTD_decompressMultiFrame zfs_ZSTD_decompressMultiFrame
317 #define	ZSTD_decompressStream zfs_ZSTD_decompressStream
318 #define	ZSTD_decompressStream_simpleArgs zfs_ZSTD_decompressStream_simpleArgs
319 #define	ZSTD_decompress_usingDDict zfs_ZSTD_decompress_usingDDict
320 #define	ZSTD_decompress_usingDict zfs_ZSTD_decompress_usingDict
321 #define	ZSTD_defaultCParameters zfs_ZSTD_defaultCParameters
322 #define	ZSTD_did_fieldSize zfs_ZSTD_did_fieldSize
323 #define	ZSTD_encodeSequences zfs_ZSTD_encodeSequences
324 #define	ZSTD_encodeSequences_default zfs_ZSTD_encodeSequences_default
325 #define	ZSTD_endStream zfs_ZSTD_endStream
326 #define	ZSTD_estimateCCtxSize zfs_ZSTD_estimateCCtxSize
327 #define	ZSTD_estimateCCtxSize_usingCCtxParams \
328 	zfs_ZSTD_estimateCCtxSize_usingCCtxParams
329 #define	ZSTD_estimateCCtxSize_usingCParams \
330 	zfs_ZSTD_estimateCCtxSize_usingCParams
331 #define	ZSTD_estimateCDictSize zfs_ZSTD_estimateCDictSize
332 #define	ZSTD_estimateCDictSize_advanced zfs_ZSTD_estimateCDictSize_advanced
333 #define	ZSTD_estimateCStreamSize zfs_ZSTD_estimateCStreamSize
334 #define	ZSTD_estimateCStreamSize_usingCCtxParams \
335 	zfs_ZSTD_estimateCStreamSize_usingCCtxParams
336 #define	ZSTD_estimateCStreamSize_usingCParams \
337 	zfs_ZSTD_estimateCStreamSize_usingCParams
338 #define	ZSTD_estimateDCtxSize zfs_ZSTD_estimateDCtxSize
339 #define	ZSTD_estimateDDictSize zfs_ZSTD_estimateDDictSize
340 #define	ZSTD_estimateDStreamSize zfs_ZSTD_estimateDStreamSize
341 #define	ZSTD_estimateDStreamSize_fromFrame \
342 	zfs_ZSTD_estimateDStreamSize_fromFrame
343 #define	ZSTD_fcs_fieldSize zfs_ZSTD_fcs_fieldSize
344 #define	ZSTD_fillDoubleHashTable zfs_ZSTD_fillDoubleHashTable
345 #define	ZSTD_fillHashTable zfs_ZSTD_fillHashTable
346 #define	ZSTD_findDecompressedSize zfs_ZSTD_findDecompressedSize
347 #define	ZSTD_findFrameCompressedSize zfs_ZSTD_findFrameCompressedSize
348 #define	ZSTD_findFrameSizeInfo zfs_ZSTD_findFrameSizeInfo
349 #define	ZSTD_flushStream zfs_ZSTD_flushStream
350 #define	ZSTD_frameHeaderSize zfs_ZSTD_frameHeaderSize
351 #define	ZSTD_free zfs_ZSTD_free
352 #define	ZSTD_freeCCtx zfs_ZSTD_freeCCtx
353 #define	ZSTD_freeCCtxParams zfs_ZSTD_freeCCtxParams
354 #define	ZSTD_freeCDict zfs_ZSTD_freeCDict
355 #define	ZSTD_freeCStream zfs_ZSTD_freeCStream
356 #define	ZSTD_freeDCtx zfs_ZSTD_freeDCtx
357 #define	ZSTD_freeDDict zfs_ZSTD_freeDDict
358 #define	ZSTD_freeDStream zfs_ZSTD_freeDStream
359 #define	ZSTD_fseBitCost zfs_ZSTD_fseBitCost
360 #define	ZSTD_getBlockSize zfs_ZSTD_getBlockSize
361 #define	ZSTD_getCParams zfs_ZSTD_getCParams
362 #define	ZSTD_getCParamsFromCCtxParams zfs_ZSTD_getCParamsFromCCtxParams
363 #define	ZSTD_getCParamsFromCDict zfs_ZSTD_getCParamsFromCDict
364 #define	ZSTD_getCParams_internal zfs_ZSTD_getCParams_internal
365 #define	ZSTD_getDDict zfs_ZSTD_getDDict
366 #define	ZSTD_getDecompressedSize zfs_ZSTD_getDecompressedSize
367 #define	ZSTD_getDictID_fromDDict zfs_ZSTD_getDictID_fromDDict
368 #define	ZSTD_getDictID_fromDict zfs_ZSTD_getDictID_fromDict
369 #define	ZSTD_getDictID_fromFrame zfs_ZSTD_getDictID_fromFrame
370 #define	ZSTD_getErrorCode zfs_ZSTD_getErrorCode
371 #define	ZSTD_getErrorName zfs_ZSTD_getErrorName
372 #define	ZSTD_getErrorString zfs_ZSTD_getErrorString
373 #define	ZSTD_getFrameContentSize zfs_ZSTD_getFrameContentSize
374 #define	ZSTD_getFrameHeader zfs_ZSTD_getFrameHeader
375 #define	ZSTD_getFrameHeader_advanced zfs_ZSTD_getFrameHeader_advanced
376 #define	ZSTD_getFrameProgression zfs_ZSTD_getFrameProgression
377 #define	ZSTD_getParams zfs_ZSTD_getParams
378 #define	ZSTD_getSeqStore zfs_ZSTD_getSeqStore
379 #define	ZSTD_getSequences zfs_ZSTD_getSequences
380 #define	ZSTD_getcBlockSize zfs_ZSTD_getcBlockSize
381 #define	ZSTD_hashPtr zfs_ZSTD_hashPtr
382 #define	ZSTD_initCDict_internal zfs_ZSTD_initCDict_internal
383 #define	ZSTD_initCStream zfs_ZSTD_initCStream
384 #define	ZSTD_initCStream_advanced zfs_ZSTD_initCStream_advanced
385 #define	ZSTD_initCStream_internal zfs_ZSTD_initCStream_internal
386 #define	ZSTD_initCStream_srcSize zfs_ZSTD_initCStream_srcSize
387 #define	ZSTD_initCStream_usingCDict zfs_ZSTD_initCStream_usingCDict
388 #define	ZSTD_initCStream_usingCDict_advanced \
389 	zfs_ZSTD_initCStream_usingCDict_advanced
390 #define	ZSTD_initCStream_usingDict zfs_ZSTD_initCStream_usingDict
391 #define	ZSTD_initDDict_internal zfs_ZSTD_initDDict_internal
392 #define	ZSTD_initDStream zfs_ZSTD_initDStream
393 #define	ZSTD_initDStream_usingDDict zfs_ZSTD_initDStream_usingDDict
394 #define	ZSTD_initDStream_usingDict zfs_ZSTD_initDStream_usingDict
395 #define	ZSTD_initFseState zfs_ZSTD_initFseState
396 #define	ZSTD_initStaticCCtx zfs_ZSTD_initStaticCCtx
397 #define	ZSTD_initStaticCDict zfs_ZSTD_initStaticCDict
398 #define	ZSTD_initStaticCStream zfs_ZSTD_initStaticCStream
399 #define	ZSTD_initStaticDCtx zfs_ZSTD_initStaticDCtx
400 #define	ZSTD_initStaticDDict zfs_ZSTD_initStaticDDict
401 #define	ZSTD_initStaticDStream zfs_ZSTD_initStaticDStream
402 #define	ZSTD_initStats_ultra zfs_ZSTD_initStats_ultra
403 #define	ZSTD_insertAndFindFirstIndex zfs_ZSTD_insertAndFindFirstIndex
404 #define	ZSTD_insertAndFindFirstIndexHash3 zfs_ZSTD_insertAndFindFirstIndexHash3
405 #define	ZSTD_insertAndFindFirstIndex_internal \
406 	zfs_ZSTD_insertAndFindFirstIndex_internal
407 #define	ZSTD_insertBlock zfs_ZSTD_insertBlock
408 #define	ZSTD_invalidateRepCodes zfs_ZSTD_invalidateRepCodes
409 #define	ZSTD_isFrame zfs_ZSTD_isFrame
410 #define	ZSTD_ldm_adjustParameters zfs_ZSTD_ldm_adjustParameters
411 #define	ZSTD_ldm_blockCompress zfs_ZSTD_ldm_blockCompress
412 #define	ZSTD_ldm_fillHashTable zfs_ZSTD_ldm_fillHashTable
413 #define	ZSTD_ldm_generateSequences zfs_ZSTD_ldm_generateSequences
414 #define	ZSTD_ldm_getMaxNbSeq zfs_ZSTD_ldm_getMaxNbSeq
415 #define	ZSTD_ldm_getTableSize zfs_ZSTD_ldm_getTableSize
416 #define	ZSTD_ldm_skipSequences zfs_ZSTD_ldm_skipSequences
417 #define	ZSTD_loadCEntropy zfs_ZSTD_loadCEntropy
418 #define	ZSTD_loadDEntropy zfs_ZSTD_loadDEntropy
419 #define	ZSTD_loadDictionaryContent zfs_ZSTD_loadDictionaryContent
420 #define	ZSTD_makeCCtxParamsFromCParams zfs_ZSTD_makeCCtxParamsFromCParams
421 #define	ZSTD_malloc zfs_ZSTD_malloc
422 #define	ZSTD_maxCLevel zfs_ZSTD_maxCLevel
423 #define	ZSTD_minCLevel zfs_ZSTD_minCLevel
424 #define	ZSTD_nextInputType zfs_ZSTD_nextInputType
425 #define	ZSTD_nextSrcSizeToDecompress zfs_ZSTD_nextSrcSizeToDecompress
426 #define	ZSTD_noCompressLiterals zfs_ZSTD_noCompressLiterals
427 #define	ZSTD_referenceExternalSequences zfs_ZSTD_referenceExternalSequences
428 #define	ZSTD_rescaleFreqs zfs_ZSTD_rescaleFreqs
429 #define	ZSTD_resetCCtx_internal zfs_ZSTD_resetCCtx_internal
430 #define	ZSTD_resetCCtx_usingCDict zfs_ZSTD_resetCCtx_usingCDict
431 #define	ZSTD_resetCStream zfs_ZSTD_resetCStream
432 #define	ZSTD_resetDStream zfs_ZSTD_resetDStream
433 #define	ZSTD_resetSeqStore zfs_ZSTD_resetSeqStore
434 #define	ZSTD_reset_compressedBlockState zfs_ZSTD_reset_compressedBlockState
435 #define	ZSTD_safecopy zfs_ZSTD_safecopy
436 #define	ZSTD_selectBlockCompressor zfs_ZSTD_selectBlockCompressor
437 #define	ZSTD_selectEncodingType zfs_ZSTD_selectEncodingType
438 #define	ZSTD_seqToCodes zfs_ZSTD_seqToCodes
439 #define	ZSTD_sizeof_CCtx zfs_ZSTD_sizeof_CCtx
440 #define	ZSTD_sizeof_CDict zfs_ZSTD_sizeof_CDict
441 #define	ZSTD_sizeof_CStream zfs_ZSTD_sizeof_CStream
442 #define	ZSTD_sizeof_DCtx zfs_ZSTD_sizeof_DCtx
443 #define	ZSTD_sizeof_DDict zfs_ZSTD_sizeof_DDict
444 #define	ZSTD_sizeof_DStream zfs_ZSTD_sizeof_DStream
445 #define	ZSTD_toFlushNow zfs_ZSTD_toFlushNow
446 #define	ZSTD_updateRep zfs_ZSTD_updateRep
447 #define	ZSTD_updateStats zfs_ZSTD_updateStats
448 #define	ZSTD_updateTree zfs_ZSTD_updateTree
449 #define	ZSTD_versionNumber zfs_ZSTD_versionNumber
450 #define	ZSTD_versionString zfs_ZSTD_versionString
451 #define	ZSTD_writeFrameHeader zfs_ZSTD_writeFrameHeader
452 #define	ZSTD_writeLastEmptyBlock zfs_ZSTD_writeLastEmptyBlock
453 #define	algoTime zfs_algoTime
454 #define	attachDictSizeCutoffs zfs_attachDictSizeCutoffs
455 #define	g_ctx zfs_g_ctx
456 #define	g_debuglevel zfs_g_debuglevel
457 #define	kInverseProbabilityLog256 zfs_kInverseProbabilityLog256
458 #define	repStartValue zfs_repStartValue
459 #define	FSE_isError zfs_FSE_isError
460 #define	HUF_isError zfs_HUF_isError
461