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