Path: blob/main/sys/contrib/openzfs/module/zstd/lib/compress/zstd_lazy.h
48774 views
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only1/*2* Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.3* All rights reserved.4*5* This source code is licensed under both the BSD-style license (found in the6* LICENSE file in the root directory of this source tree) and the GPLv2 (found7* in the COPYING file in the root directory of this source tree).8* You may select, at your option, one of the above-listed licenses.9*/1011#ifndef ZSTD_LAZY_H12#define ZSTD_LAZY_H1314#if defined (__cplusplus)15extern "C" {16#endif1718#include "zstd_compress_internal.h"1920U32 ZSTD_insertAndFindFirstIndex(ZSTD_matchState_t* ms, const BYTE* ip);2122void ZSTD_preserveUnsortedMark (U32* const table, U32 const size, U32 const reducerValue); /*! used in ZSTD_reduceIndex(). preemptively increase value of ZSTD_DUBT_UNSORTED_MARK */2324size_t ZSTD_compressBlock_btlazy2(25ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],26void const* src, size_t srcSize);27size_t ZSTD_compressBlock_lazy2(28ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],29void const* src, size_t srcSize);30size_t ZSTD_compressBlock_lazy(31ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],32void const* src, size_t srcSize);33size_t ZSTD_compressBlock_greedy(34ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],35void const* src, size_t srcSize);3637size_t ZSTD_compressBlock_btlazy2_dictMatchState(38ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],39void const* src, size_t srcSize);40size_t ZSTD_compressBlock_lazy2_dictMatchState(41ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],42void const* src, size_t srcSize);43size_t ZSTD_compressBlock_lazy_dictMatchState(44ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],45void const* src, size_t srcSize);46size_t ZSTD_compressBlock_greedy_dictMatchState(47ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],48void const* src, size_t srcSize);4950size_t ZSTD_compressBlock_greedy_extDict(51ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],52void const* src, size_t srcSize);53size_t ZSTD_compressBlock_lazy_extDict(54ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],55void const* src, size_t srcSize);56size_t ZSTD_compressBlock_lazy2_extDict(57ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],58void const* src, size_t srcSize);59size_t ZSTD_compressBlock_btlazy2_extDict(60ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],61void const* src, size_t srcSize);6263#if defined (__cplusplus)64}65#endif6667#endif /* ZSTD_LAZY_H */686970