mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 18:07:08 +08:00
Merge pull request #25903 from Kumataro:fixC3767
core: hal: avoid to use _tzcnt_u32 for ARM64EC
This commit is contained in:
commit
81f33103fd
@ -64,7 +64,7 @@
|
|||||||
namespace {
|
namespace {
|
||||||
inline unsigned int trailingZeros32(unsigned int value) {
|
inline unsigned int trailingZeros32(unsigned int value) {
|
||||||
#if defined(_MSC_VER)
|
#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;
|
unsigned long index = 0;
|
||||||
_BitScanForward(&index, value);
|
_BitScanForward(&index, value);
|
||||||
return (unsigned int)index;
|
return (unsigned int)index;
|
||||||
|
Loading…
Reference in New Issue
Block a user