Path: blob/master/Utilities/cmzstd/lib/compress/zstd_double_fast.h
5023 views
/*1* Copyright (c) Meta Platforms, Inc. and affiliates.2* All rights reserved.3*4* This source code is licensed under both the BSD-style license (found in the5* LICENSE file in the root directory of this source tree) and the GPLv2 (found6* in the COPYING file in the root directory of this source tree).7* You may select, at your option, one of the above-listed licenses.8*/910#ifndef ZSTD_DOUBLE_FAST_H11#define ZSTD_DOUBLE_FAST_H1213#include "../common/mem.h" /* U32 */14#include "zstd_compress_internal.h" /* ZSTD_CCtx, size_t */1516#ifndef ZSTD_EXCLUDE_DFAST_BLOCK_COMPRESSOR1718void ZSTD_fillDoubleHashTable(ZSTD_MatchState_t* ms,19void const* end, ZSTD_dictTableLoadMethod_e dtlm,20ZSTD_tableFillPurpose_e tfp);2122size_t ZSTD_compressBlock_doubleFast(23ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],24void const* src, size_t srcSize);25size_t ZSTD_compressBlock_doubleFast_dictMatchState(26ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],27void const* src, size_t srcSize);28size_t ZSTD_compressBlock_doubleFast_extDict(29ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],30void const* src, size_t srcSize);3132#define ZSTD_COMPRESSBLOCK_DOUBLEFAST ZSTD_compressBlock_doubleFast33#define ZSTD_COMPRESSBLOCK_DOUBLEFAST_DICTMATCHSTATE ZSTD_compressBlock_doubleFast_dictMatchState34#define ZSTD_COMPRESSBLOCK_DOUBLEFAST_EXTDICT ZSTD_compressBlock_doubleFast_extDict35#else36#define ZSTD_COMPRESSBLOCK_DOUBLEFAST NULL37#define ZSTD_COMPRESSBLOCK_DOUBLEFAST_DICTMATCHSTATE NULL38#define ZSTD_COMPRESSBLOCK_DOUBLEFAST_EXTDICT NULL39#endif /* ZSTD_EXCLUDE_DFAST_BLOCK_COMPRESSOR */4041#endif /* ZSTD_DOUBLE_FAST_H */424344