mirror of
https://github.com/boostorg/charconv.git
synced 2026-02-09 23:12:24 +00:00
Change x86 intrinsic to work with 32bit environment
This commit is contained in:
@@ -76,7 +76,7 @@ inline int leading_zeros(std::uint64_t val) noexcept
|
||||
return static_cast<int>(63 - leading_zero);
|
||||
}
|
||||
#elif defined(BOOST_CHARCONV_HAS_X86_INTRINSICS)
|
||||
return static_cast<int>(_lzcnt_u64(val);)
|
||||
return static_cast<int>(__builtin_clzll(val));
|
||||
#elif defined(BOOST_CHARCONV_HAS_ARM_INTRINSICS)
|
||||
// CLZ Xd, Xm
|
||||
return __builtin_clzll(val);
|
||||
|
||||
Reference in New Issue
Block a user