]>
git.proxmox.com Git - ceph.git/blob - ceph/src/zstd/contrib/single_file_libs/zstd-in.c
3 * Single-file Zstandard library.
7 * combine.sh -r ../../lib -o zstd.c zstd-in.c
11 * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
12 * All rights reserved.
14 * This source code is licensed under both the BSD-style license (found in the
15 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
16 * in the COPYING file in the root directory of this source tree).
17 * You may select, at your option, one of the above-listed licenses.
20 * Settings to bake for the single library file.
22 * Note: It's important that none of these affects 'zstd.h' (only the
23 * implementation files we're amalgamating).
25 * Note: MEM_MODULE stops xxhash redefining BYTE, U16, etc., which are also
26 * defined in mem.h (breaking C99 compatibility).
28 * Note: the undefs for xxHash allow Zstd's implementation to coinside with with
29 * standalone xxHash usage (with global defines).
31 * Note: multithreading is enabled for all platforms apart from Emscripten.
36 #define XXH_NAMESPACE ZSTD_
37 #undef XXH_PRIVATE_API
38 #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
45 #ifndef __EMSCRIPTEN__
46 #define ZSTD_MULTITHREAD
49 #include "common/debug.c"
50 #include "common/entropy_common.c"
51 #include "common/error_private.c"
52 #include "common/fse_decompress.c"
53 #include "common/threading.c"
54 #include "common/pool.c"
55 #include "common/zstd_common.c"
57 #include "compress/fse_compress.c"
58 #include "compress/hist.c"
59 #include "compress/huf_compress.c"
60 #include "compress/zstd_compress_literals.c"
61 #include "compress/zstd_compress_sequences.c"
62 #include "compress/zstd_compress_superblock.c"
63 #include "compress/zstd_compress.c"
64 #include "compress/zstd_double_fast.c"
65 #include "compress/zstd_fast.c"
66 #include "compress/zstd_lazy.c"
67 #include "compress/zstd_ldm.c"
68 #include "compress/zstd_opt.c"
69 #ifdef ZSTD_MULTITHREAD
70 #include "compress/zstdmt_compress.c"
73 #include "decompress/huf_decompress.c"
74 #include "decompress/zstd_ddict.c"
75 #include "decompress/zstd_decompress.c"
76 #include "decompress/zstd_decompress_block.c"