函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:lib\zstd\compress.c Create Date:2022-07-27 08:01:40
首页 Copyright©Brick

1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
static size_t ZSTD_BtFindBestMatch_selectMLS_extDict(ZSTD_CCtx *zc, /* Index table will be updated */
                             const BYTE *ip, const BYTE *const iLimit, size_t *offsetPtr, const U32 maxNbAttempts,
                             const U32 matchLengthSearch)
{
    switch (matchLengthSearch) {
    default: /* includes case 3 */
    case 4: return ZSTD_BtFindBestMatch_extDict(zc, ip, iLimit, offsetPtr, maxNbAttempts, 4);
    case 5: return ZSTD_BtFindBestMatch_extDict(zc, ip, iLimit, offsetPtr, maxNbAttempts, 5);
    case 7:
    case 6: return ZSTD_BtFindBestMatch_extDict(zc, ip, iLimit, offsetPtr, maxNbAttempts, 6);
    }
}