u32 len;
u32 best_len = 2;
- if (unlikely(max_len < LOAD_U24_REQUIRED_NBYTES + 1)) {
- *best_len_ret = best_len;
- return lz_matchptr;
- }
-
hash3 = *next_hash;
*next_hash = lz_hash(load_u24_unaligned(in_next + 1), BT_MATCHFINDER_HASH3_ORDER);
prefetchw(&mf->hash3_tab[*next_hash]);
* The current position in the input buffer (the position of the sequence
* being matched against).
* @max_len
- * The maximum permissible match length at this position.
+ * The maximum permissible match length at this position. Must be >= 5.
* @nice_len
* Stop searching if a match of at least this length is found.
* Must be <= @max_len.
* @cur_pos
* The current position in the input buffer.
* @max_len
- * The maximum permissible match length at this position.
+ * The maximum permissible match length at this position. Must be >= 5.
* @nice_len
* Stop searching if a match of at least this length is found.
* @max_search_depth