diff options
author | Brad King <brad.king@kitware.com> | 2019-03-14 15:08:04 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-03-14 15:08:43 (GMT) |
commit | 9915003eae2c483f783eca4d73bb0cf49cdfbae0 (patch) | |
tree | 22baf799bc3ab7719b30f0ca0bf4dc51ab43f71e /Utilities/cmzstd/lib/compress/zstd_fast.h | |
parent | 101621ee528c84a56d2938a6683b5a7a20999a0a (diff) | |
parent | 1761a9a54668da90c61f47afbb4e520a7079a697 (diff) | |
download | CMake-9915003eae2c483f783eca4d73bb0cf49cdfbae0.zip CMake-9915003eae2c483f783eca4d73bb0cf49cdfbae0.tar.gz CMake-9915003eae2c483f783eca4d73bb0cf49cdfbae0.tar.bz2 |
Merge topic 'import-zstd'
1761a9a546 CMake: Enable use of zstd in libarchive
2cf2921749 zstd: Add CMake build system
f92b4b52eb Merge branch 'upstream-zstd' into import-zstd
fbaf65639a zstd 2018-12-27 (470344d3)
9337cbfcca zstd: add script to import zstd from upstream
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Bartosz <gang65@poczta.onet.pl>
Merge-request: !3092
Diffstat (limited to 'Utilities/cmzstd/lib/compress/zstd_fast.h')
-rw-r--r-- | Utilities/cmzstd/lib/compress/zstd_fast.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Utilities/cmzstd/lib/compress/zstd_fast.h b/Utilities/cmzstd/lib/compress/zstd_fast.h new file mode 100644 index 0000000..b74a88c --- /dev/null +++ b/Utilities/cmzstd/lib/compress/zstd_fast.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under both the BSD-style license (found in the + * LICENSE file in the root directory of this source tree) and the GPLv2 (found + * in the COPYING file in the root directory of this source tree). + * You may select, at your option, one of the above-listed licenses. + */ + +#ifndef ZSTD_FAST_H +#define ZSTD_FAST_H + +#if defined (__cplusplus) +extern "C" { +#endif + +#include "mem.h" /* U32 */ +#include "zstd_compress_internal.h" + +void ZSTD_fillHashTable(ZSTD_matchState_t* ms, + void const* end, ZSTD_dictTableLoadMethod_e dtlm); +size_t ZSTD_compressBlock_fast( + ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], + void const* src, size_t srcSize); +size_t ZSTD_compressBlock_fast_dictMatchState( + ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], + void const* src, size_t srcSize); +size_t ZSTD_compressBlock_fast_extDict( + ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], + void const* src, size_t srcSize); + +#if defined (__cplusplus) +} +#endif + +#endif /* ZSTD_FAST_H */ |