mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
liblzma: Silence -Wsign-conversion in SSE2 code in memcmplen.h.
Thanks to Christian Hesse for reporting the issue. Fixes: https://github.com/tukaani-project/xz/issues/44
This commit is contained in:
parent
f0c580c5fc
commit
dfe1710784
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2,
|
||||||
// version isn't used on x86-64.
|
// version isn't used on x86-64.
|
||||||
# define LZMA_MEMCMPLEN_EXTRA 16
|
# define LZMA_MEMCMPLEN_EXTRA 16
|
||||||
while (len < limit) {
|
while (len < limit) {
|
||||||
const uint32_t x = 0xFFFF ^ _mm_movemask_epi8(_mm_cmpeq_epi8(
|
const uint32_t x = 0xFFFF ^ (uint32_t)_mm_movemask_epi8(
|
||||||
|
_mm_cmpeq_epi8(
|
||||||
_mm_loadu_si128((const __m128i *)(buf1 + len)),
|
_mm_loadu_si128((const __m128i *)(buf1 + len)),
|
||||||
_mm_loadu_si128((const __m128i *)(buf2 + len))));
|
_mm_loadu_si128((const __m128i *)(buf2 + len))));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue