* Return the number of bytes at @matchptr that match the bytes at @strptr, up
* to a maximum of @max_len. Initially, @len bytes are matched.
*/
-static inline u32
+static forceinline u32
lz_extend(const u8 * const strptr, const u8 * const matchptr,
u32 len, const u32 max_len)
{
load_word_unaligned(strptr + len);
if (v != 0) {
if (CPU_IS_LITTLE_ENDIAN)
- len += ffsw(v) >> 3;
+ len += bsfw(v) >> 3;
else
- len += (WORDBITS - 1 - flsw(v)) >> 3;
+ len += (WORDBITS - 1 - bsrw(v)) >> 3;
return len;
}
len += WORDBYTES;