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