xref: /freebsd/sys/contrib/zstd/lib/compress/zstd_double_fast.h (revision 5ff13fbc199bdf5f0572845351c68ee5ca828e71)
10c16b537SWarner Losh /*
2*5ff13fbcSAllan Jude  * Copyright (c) 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_DOUBLE_FAST_H
120c16b537SWarner Losh #define ZSTD_DOUBLE_FAST_H
130c16b537SWarner Losh 
140c16b537SWarner Losh #if defined (__cplusplus)
150c16b537SWarner Losh extern "C" {
160c16b537SWarner Losh #endif
170c16b537SWarner Losh 
1837f1f268SConrad Meyer #include "../common/mem.h"      /* U32 */
1919fcbaf1SConrad Meyer #include "zstd_compress_internal.h"     /* ZSTD_CCtx, size_t */
20052d3c12SConrad Meyer 
2119fcbaf1SConrad Meyer void ZSTD_fillDoubleHashTable(ZSTD_matchState_t* ms,
220f743729SConrad Meyer                               void const* end, ZSTD_dictTableLoadMethod_e dtlm);
2319fcbaf1SConrad Meyer size_t ZSTD_compressBlock_doubleFast(
2419fcbaf1SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
250f743729SConrad Meyer         void const* src, size_t srcSize);
260f743729SConrad Meyer size_t ZSTD_compressBlock_doubleFast_dictMatchState(
270f743729SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
280f743729SConrad Meyer         void const* src, size_t srcSize);
2919fcbaf1SConrad Meyer size_t ZSTD_compressBlock_doubleFast_extDict(
3019fcbaf1SConrad Meyer         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
310f743729SConrad Meyer         void const* src, size_t srcSize);
3219fcbaf1SConrad Meyer 
330c16b537SWarner Losh 
340c16b537SWarner Losh #if defined (__cplusplus)
350c16b537SWarner Losh }
360c16b537SWarner Losh #endif
370c16b537SWarner Losh 
380c16b537SWarner Losh #endif /* ZSTD_DOUBLE_FAST_H */
39