diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-03 14:45:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-03 14:46:23 +0100 |
commit | dc542fee771da80377bcac16136c0972a8faadb4 (patch) | |
tree | db7a15a9a90d1bcd2fa948641b45aa4900067598 /contrib/zstd/zstd_double_fast.h | |
parent | 74a6f8cc42d902ef10fe70b633a4d11735e578d2 (diff) | |
download | rspamd-dc542fee771da80377bcac16136c0972a8faadb4.tar.gz rspamd-dc542fee771da80377bcac16136c0972a8faadb4.zip |
[Rework] Update zstd to 1.4.5
Diffstat (limited to 'contrib/zstd/zstd_double_fast.h')
-rw-r--r-- | contrib/zstd/zstd_double_fast.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/contrib/zstd/zstd_double_fast.h b/contrib/zstd/zstd_double_fast.h index 3dba6c710..73a2002f3 100644 --- a/contrib/zstd/zstd_double_fast.h +++ b/contrib/zstd/zstd_double_fast.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. + * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the @@ -11,15 +11,25 @@ #ifndef ZSTD_DOUBLE_FAST_H #define ZSTD_DOUBLE_FAST_H -#include "zstd_compress.h" - #if defined (__cplusplus) extern "C" { #endif -void ZSTD_fillDoubleHashTable(ZSTD_CCtx* cctx, const void* end, const U32 mls); -size_t ZSTD_compressBlock_doubleFast(ZSTD_CCtx* ctx, const void* src, size_t srcSize); -size_t ZSTD_compressBlock_doubleFast_extDict(ZSTD_CCtx* ctx, const void* src, size_t srcSize); +#include "mem.h" /* U32 */ +#include "zstd_compress_internal.h" /* ZSTD_CCtx, size_t */ + +void ZSTD_fillDoubleHashTable(ZSTD_matchState_t* ms, + void const* end, ZSTD_dictTableLoadMethod_e dtlm); +size_t ZSTD_compressBlock_doubleFast( + ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], + void const* src, size_t srcSize); +size_t ZSTD_compressBlock_doubleFast_dictMatchState( + ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], + void const* src, size_t srcSize); +size_t ZSTD_compressBlock_doubleFast_extDict( + ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], + void const* src, size_t srcSize); + #if defined (__cplusplus) } |