xref: /freebsd/sys/contrib/zstd/lib/compress/zstd_fast.h (revision 0f743729abbfc5c9d78a713f72241a4d4bd601ec)
10c16b537SWarner Losh /*
20c16b537SWarner Losh  * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
30c16b537SWarner Losh  * All rights reserved.
40c16b537SWarner Losh  *
50c16b537SWarner Losh  * This source code is licensed under both the BSD-style license (found in the
60c16b537SWarner Losh  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
70c16b537SWarner Losh  * in the COPYING file in the root directory of this source tree).
80c16b537SWarner Losh  * You may select, at your option, one of the above-listed licenses.
90c16b537SWarner Losh  */
100c16b537SWarner Losh 
110c16b537SWarner Losh #ifndef ZSTD_FAST_H
120c16b537SWarner Losh #define ZSTD_FAST_H
130c16b537SWarner Losh 
140c16b537SWarner Losh #if defined (__cplusplus)
150c16b537SWarner Losh extern "C" {
160c16b537SWarner Losh #endif
170c16b537SWarner Losh 
18052d3c12SConrad Meyer #include "mem.h"      /* U32 */
1919fcbaf1SConrad Meyer #include "zstd_compress_internal.h"
20052d3c12SConrad Meyer 
2119fcbaf1SConrad Meyer void ZSTD_fillHashTable(ZSTD_matchState_t* ms,
22*0f743729SConrad Meyer                         void const* end, ZSTD_dictTableLoadMethod_e dtlm);
2319fcbaf1SConrad Meyer size_t ZSTD_compressBlock_fast(
2419fcbaf1SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
25*0f743729SConrad Meyer         void const* src, size_t srcSize);
26*0f743729SConrad Meyer size_t ZSTD_compressBlock_fast_dictMatchState(
27*0f743729SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
28*0f743729SConrad Meyer         void const* src, size_t srcSize);
2919fcbaf1SConrad Meyer size_t ZSTD_compressBlock_fast_extDict(
3019fcbaf1SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
31*0f743729SConrad Meyer         void const* src, size_t srcSize);
320c16b537SWarner Losh 
330c16b537SWarner Losh #if defined (__cplusplus)
340c16b537SWarner Losh }
350c16b537SWarner Losh #endif
360c16b537SWarner Losh 
370c16b537SWarner Losh #endif /* ZSTD_FAST_H */
38