diff options
author | Yann Collet <cyan@fb.com> | 2017-11-03 18:49:56 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-11-03 18:49:56 (GMT) |
commit | 89821ac7a1e9bdeef33c747321b6deec66cbde1e (patch) | |
tree | b74c7bc8a6d282f9eae234d605b3595879b604a4 /lib/lz4opt.h | |
parent | 1025546347d75ec94f584294a36132527a45d46c (diff) | |
download | lz4-89821ac7a1e9bdeef33c747321b6deec66cbde1e.zip lz4-89821ac7a1e9bdeef33c747321b6deec66cbde1e.tar.gz lz4-89821ac7a1e9bdeef33c747321b6deec66cbde1e.tar.bz2 |
minor comment edit
Diffstat (limited to 'lib/lz4opt.h')
-rw-r--r-- | lib/lz4opt.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/lz4opt.h b/lib/lz4opt.h index df8ecd6..dd22b7a 100644 --- a/lib/lz4opt.h +++ b/lib/lz4opt.h @@ -35,12 +35,6 @@ #define LZ4_OPT_NUM (1<<12) - -typedef struct { - int off; - int len; -} LZ4HC_match_t; - typedef struct { int price; int off; @@ -88,12 +82,17 @@ int LZ4HC_FindLongerMatch(LZ4HC_CCtx_internal* const ctx, /* Index table will return LZ4HC_InsertAndGetWiderMatch(ctx, ip, ip, iHighLimit, longest, matchpos, &uselessPtr, maxNbAttempts); } +typedef struct { + int off; + int len; +} LZ4HC_match_t; + LZ4_FORCE_INLINE LZ4HC_match_t LZ4HC_HashChain_GetAllMatches (LZ4HC_CCtx_internal* const ctx, const BYTE* const ip, const BYTE* const iHighLimit, size_t best_mlen, int nbSearches) { - LZ4HC_match_t match = {0 , 0}; + LZ4HC_match_t match = { 0 , 0 }; const BYTE* matchPtr = NULL; int matchLength = LZ4HC_FindLongerMatch(ctx, ip, iHighLimit, (int)best_mlen, &matchPtr, nbSearches); if ((size_t)matchLength <= best_mlen) return match; |