Path: blob/main/sys/contrib/zstd/lib/compress/zstd_fast.h
48378 views
/*1* Copyright (c) Yann Collet, Facebook, Inc.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_FAST_H11#define ZSTD_FAST_H1213#if defined (__cplusplus)14extern "C" {15#endif1617#include "../common/mem.h" /* U32 */18#include "zstd_compress_internal.h"1920void ZSTD_fillHashTable(ZSTD_matchState_t* ms,21void const* end, ZSTD_dictTableLoadMethod_e dtlm);22size_t ZSTD_compressBlock_fast(23ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],24void const* src, size_t srcSize);25size_t ZSTD_compressBlock_fast_dictMatchState(26ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],27void const* src, size_t srcSize);28size_t ZSTD_compressBlock_fast_extDict(29ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],30void const* src, size_t srcSize);3132#if defined (__cplusplus)33}34#endif3536#endif /* ZSTD_FAST_H */373839