fixed LZ4HC_countPattern()
authorYann Collet <cyan@fb.com>
Tue, 7 Nov 2017 18:53:29 +0000 (10:53 -0800)
committerYann Collet <cyan@fb.com>
Tue, 7 Nov 2017 18:53:29 +0000 (10:53 -0800)
commita004c1fbee4e5a8793f9dfc1deeafea1d59be486
treeb1b878a8aefcba68f39d39b3566f8bb7b707bca8
parentaa99163752079890c8d75461d2b5c1fd7c426c3b
fixed LZ4HC_countPattern()

- works with byte values other than `0`
- works for any repetitive pattern of length 1, 2 or 4 (but not 3!)
- works for little and big endian systems
- preserve speed of previous implementation
lib/lz4hc.c