]> wimlib.net Git - wimlib/blob - src/lz_repsearch.c
Factor out lz_repsearch() and also use for LZMS
[wimlib] / src / lz_repsearch.c
1 /*
2  * lz_repsearch.c
3  *
4  * Fast searching for repeat offset matches.
5  *
6  * The author dedicates this file to the public domain.
7  * You can do whatever you want with this file.
8  *
9  */
10
11 #include "wimlib/lz_repsearch.h"
12 #include "wimlib/lz_extend.h"
13
14 u32
15 lz_extend_repmatch(const u8 *strptr, const u8 *matchptr, u32 max_len)
16 {
17         return lz_extend(strptr, matchptr, 2, max_len);
18 }