Closed GoogleCodeExporter closed 8 years ago
> I think LZ4_NbCommonBytes function use for find least bit is set(1).
Well, not exactly.
LZ4_NbCommonBytes() is used to know how many bytes are in common between a
source and a reference, progressing in memory order. It's only called to
"finalize" this count (i.e. we know that values being compared are not strictly
equal).
LSB and MSB are only methods to find that answer.
For little endian CPU, the first byte is the smallest one. So we look for LSB.
For big endian CPU, the first byte is the highest one. So we look for MSB.
Original comment by yann.col...@gmail.com
on 19 Jun 2013 at 2:58
Original comment by yann.col...@gmail.com
on 19 Jun 2013 at 2:59
Original comment by yann.col...@gmail.com
on 1 Jul 2013 at 7:53
Original issue reported on code.google.com by
sailerz...@gmail.com
on 18 Jun 2013 at 3:58