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