aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/memcmplen.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-11 14:35:58 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-11 14:35:58 +0200
commitc715f683dcb1a817d565da292cddfbceda643e12 (patch)
tree07b9c1bd006891ccbe5e250075be541a3baf0e6a /src/liblzma/common/memcmplen.h
parentAdd NEWS for 5.2.7 (forgotten cherry-pick from v5.2). (diff)
downloadxz-c715f683dcb1a817d565da292cddfbceda643e12.tar.xz
liblzma: Fix incorrect #ifdef for x86 SSE2 support.
__SSE2__ is the correct macro for SSE2 support with GCC, Clang, and ICC. __SSE2_MATH__ means doing floating point math with SSE2 instead of 387. Often the latter macro is defined if the first one is but it was still a bug.
Diffstat (limited to '')
-rw-r--r--src/liblzma/common/memcmplen.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liblzma/common/memcmplen.h b/src/liblzma/common/memcmplen.h
index a80428b9..5a481a02 100644
--- a/src/liblzma/common/memcmplen.h
+++ b/src/liblzma/common/memcmplen.h
@@ -76,8 +76,7 @@ lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2,
#elif defined(TUKLIB_FAST_UNALIGNED_ACCESS) \
&& defined(HAVE__MM_MOVEMASK_EPI8) \
- && ((defined(__GNUC__) && defined(__SSE2_MATH__)) \
- || (defined(__INTEL_COMPILER) && defined(__SSE2__)) \
+ && (defined(__SSE2__) \
|| (defined(_MSC_VER) && defined(_M_IX86_FP) \
&& _M_IX86_FP >= 2))
// NOTE: This will use 128-bit unaligned access which