xref: /aosp_15_r20/external/zstd/lib/compress/zstd_fast.h (revision 01826a4963a0d8a59bc3812d29bdf0fb76416722)
1*01826a49SYabin Cui /*
2*01826a49SYabin Cui  * Copyright (c) Meta Platforms, Inc. and affiliates.
3*01826a49SYabin Cui  * All rights reserved.
4*01826a49SYabin Cui  *
5*01826a49SYabin Cui  * This source code is licensed under both the BSD-style license (found in the
6*01826a49SYabin Cui  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7*01826a49SYabin Cui  * in the COPYING file in the root directory of this source tree).
8*01826a49SYabin Cui  * You may select, at your option, one of the above-listed licenses.
9*01826a49SYabin Cui  */
10*01826a49SYabin Cui 
11*01826a49SYabin Cui #ifndef ZSTD_FAST_H
12*01826a49SYabin Cui #define ZSTD_FAST_H
13*01826a49SYabin Cui 
14*01826a49SYabin Cui #if defined (__cplusplus)
15*01826a49SYabin Cui extern "C" {
16*01826a49SYabin Cui #endif
17*01826a49SYabin Cui 
18*01826a49SYabin Cui #include "../common/mem.h"      /* U32 */
19*01826a49SYabin Cui #include "zstd_compress_internal.h"
20*01826a49SYabin Cui 
21*01826a49SYabin Cui void ZSTD_fillHashTable(ZSTD_matchState_t* ms,
22*01826a49SYabin Cui                         void const* end, ZSTD_dictTableLoadMethod_e dtlm,
23*01826a49SYabin Cui                         ZSTD_tableFillPurpose_e tfp);
24*01826a49SYabin Cui size_t ZSTD_compressBlock_fast(
25*01826a49SYabin Cui         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
26*01826a49SYabin Cui         void const* src, size_t srcSize);
27*01826a49SYabin Cui size_t ZSTD_compressBlock_fast_dictMatchState(
28*01826a49SYabin Cui         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
29*01826a49SYabin Cui         void const* src, size_t srcSize);
30*01826a49SYabin Cui size_t ZSTD_compressBlock_fast_extDict(
31*01826a49SYabin Cui         ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
32*01826a49SYabin Cui         void const* src, size_t srcSize);
33*01826a49SYabin Cui 
34*01826a49SYabin Cui #if defined (__cplusplus)
35*01826a49SYabin Cui }
36*01826a49SYabin Cui #endif
37*01826a49SYabin Cui 
38*01826a49SYabin Cui #endif /* ZSTD_FAST_H */
39