xref: /freebsd/sys/contrib/openzfs/module/zstd/zstd-in.c (revision 61145dc2b94f12f6a47344fb9aac702321880e43)
1*61145dc2SMartin Matuska // SPDX-License-Identifier: BSD-3-Clause
2eda14cbcSMatt Macy /*
3eda14cbcSMatt Macy  * BSD 3-Clause Clear License
4eda14cbcSMatt Macy  *
5eda14cbcSMatt Macy  * Redistribution and use in source and binary forms, with or without
6eda14cbcSMatt Macy  * modification, are permitted provided that the following conditions are met:
7eda14cbcSMatt Macy  *
8eda14cbcSMatt Macy  * 1. Redistributions of source code must retain the above copyright notice,
9eda14cbcSMatt Macy  * this list of conditions and the following disclaimer.
10eda14cbcSMatt Macy  *
11eda14cbcSMatt Macy  * 2. Redistributions in binary form must reproduce the above copyright notice,
12eda14cbcSMatt Macy  * this list of conditions and the following disclaimer in the documentation
13eda14cbcSMatt Macy  * and/or other materials provided with the distribution.
14eda14cbcSMatt Macy  *
15eda14cbcSMatt Macy  * 3. Neither the name of the copyright holder nor the names of its
16eda14cbcSMatt Macy  * contributors may be used to endorse or promote products derived from this
17eda14cbcSMatt Macy  * software without specific prior written permission.
18eda14cbcSMatt Macy  *
19eda14cbcSMatt Macy  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20eda14cbcSMatt Macy  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21eda14cbcSMatt Macy  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22eda14cbcSMatt Macy  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23eda14cbcSMatt Macy  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24eda14cbcSMatt Macy  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25eda14cbcSMatt Macy  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26eda14cbcSMatt Macy  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27eda14cbcSMatt Macy  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28eda14cbcSMatt Macy  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29eda14cbcSMatt Macy  * POSSIBILITY OF SUCH DAMAGE.
30eda14cbcSMatt Macy  */
31eda14cbcSMatt Macy 
32eda14cbcSMatt Macy /*
33eda14cbcSMatt Macy  * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
34eda14cbcSMatt Macy  * Copyright (c) 2019-2020, Michael Niewöhner
35eda14cbcSMatt Macy  */
36eda14cbcSMatt Macy 
37eda14cbcSMatt Macy #define	MEM_MODULE
38eda14cbcSMatt Macy #define	XXH_NAMESPACE ZSTD_
39eda14cbcSMatt Macy #define	XXH_PRIVATE_API
40eda14cbcSMatt Macy #define	XXH_INLINE_ALL
41eda14cbcSMatt Macy #define	ZSTD_LEGACY_SUPPORT 0
42eda14cbcSMatt Macy #define	ZSTD_LIB_DICTBUILDER 0
43eda14cbcSMatt Macy #define	ZSTD_LIB_DEPRECATED 0
44eda14cbcSMatt Macy #define	ZSTD_NOBENCH
45eda14cbcSMatt Macy 
46eda14cbcSMatt Macy #include "common/debug.c"
47eda14cbcSMatt Macy #include "common/entropy_common.c"
48eda14cbcSMatt Macy #include "common/error_private.c"
49eda14cbcSMatt Macy #include "common/fse_decompress.c"
50eda14cbcSMatt Macy #include "common/pool.c"
51eda14cbcSMatt Macy #include "common/zstd_common.c"
52eda14cbcSMatt Macy 
53eda14cbcSMatt Macy #include "compress/fse_compress.c"
54eda14cbcSMatt Macy #include "compress/hist.c"
55eda14cbcSMatt Macy #include "compress/huf_compress.c"
56eda14cbcSMatt Macy #include "compress/zstd_compress_literals.c"
57eda14cbcSMatt Macy #include "compress/zstd_compress_sequences.c"
58eda14cbcSMatt Macy #include "compress/zstd_compress_superblock.c"
59eda14cbcSMatt Macy #include "compress/zstd_compress.c"
60eda14cbcSMatt Macy #include "compress/zstd_double_fast.c"
61eda14cbcSMatt Macy #include "compress/zstd_fast.c"
62eda14cbcSMatt Macy #include "compress/zstd_lazy.c"
63eda14cbcSMatt Macy #include "compress/zstd_ldm.c"
64eda14cbcSMatt Macy #include "compress/zstd_opt.c"
65eda14cbcSMatt Macy 
66eda14cbcSMatt Macy #include "decompress/huf_decompress.c"
67eda14cbcSMatt Macy #include "decompress/zstd_ddict.c"
68eda14cbcSMatt Macy #include "decompress/zstd_decompress.c"
69eda14cbcSMatt Macy #include "decompress/zstd_decompress_block.c"
70