*
* Fast match extension for Lempel-Ziv matchfinding.
*
+ * Author: Eric Biggers
+ * Year: 2014, 2015
+ *
* The author dedicates this file to the public domain.
* You can do whatever you want with this file.
*/
if (CPU_IS_LITTLE_ENDIAN)
len += (ffsw(v_word) >> 3);
else
- len += (flsw(v_word) >> 3);
+ len += (8 * WORDSIZE - 1 - flsw(v_word)) >> 3;
return len;
}