aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-01 21:36:13 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-06-01 21:36:13 +0300
commit386394fc9fcde2615391f804eaa466749f96f4ef (patch)
tree187b4dacff73204dc6d716cc867963a07a9381f3 /src/liblzma/common
parenttuklib_integer: Cleanup MSVC-specific code. (diff)
downloadxz-386394fc9fcde2615391f804eaa466749f96f4ef.tar.xz
liblzma: memcmplen: Use ctz32() from tuklib_integer.h.
The same compiler-specific #ifdefs are already in tuklib_integer.h
Diffstat (limited to 'src/liblzma/common')
-rw-r--r--src/liblzma/common/memcmplen.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/liblzma/common/memcmplen.h b/src/liblzma/common/memcmplen.h
index 62e79832..25debf6a 100644
--- a/src/liblzma/common/memcmplen.h
+++ b/src/liblzma/common/memcmplen.h
@@ -99,15 +99,7 @@ lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2,
_mm_loadu_si128((const __m128i *)(buf2 + len))));
if (x != 0) {
-# if defined(__INTEL_COMPILER)
- len += _bit_scan_forward(x);
-# elif defined(_MSC_VER)
- unsigned long tmp;
- _BitScanForward(&tmp, x);
- len += tmp;
-# else
- len += __builtin_ctz(x);
-# endif
+ len += ctz32(x);
return my_min(len, limit);
}