Skip to contentSkip to conversation

lib : lz4 using put_unaligned_le16 instead of put_unaligned

PATCH Eunbong Song 1 participant 1 message Jul 22, 2014

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

So it's never worked?

Yes, it's always failed to mount.

Quoted 1 line

Did you test on a little endian machine after making this change?

Unfortunately, i don't have little endian machine. So i couldn't test that.

Additionaly, when lz4 compress calls lz4_compressctx() function and uses LZ4_WRITE_LITTLEENDIAN_16() macro. And When lz4 decompress calls lz4_uncompress_unknownoutputsize function and
uses LZ4_READ_LITTLEENDIAN_16 macro.
There is endian mismatch in big endian machine as i metioned before. when compress lz4 write big endian bytes order and when decompress lz4 reads little endian bytes order.
So i means we should make there is no endian mismatch between compress and decompress operation.

Thanks. �淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m��� �띠�◀?뻀�