Merge pull request #25903 from Kumataro:fixC3767

core: hal: avoid to use _tzcnt_u32 for ARM64EC
This commit is contained in:
Alexander Smorkalov 2024-07-15 10:07:21 +03:00 committed by GitHub
commit 81f33103fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@
namespace {
inline unsigned int trailingZeros32(unsigned int value) {
#if defined(_MSC_VER)
#if (_MSC_VER < 1700) || defined(_M_ARM) || defined(_M_ARM64)
#if (_MSC_VER < 1700) || defined(_M_ARM) || defined(_M_ARM64) || defined(_M_ARM64EC)
unsigned long index = 0;
_BitScanForward(&index, value);
return (unsigned int)index;