Skip to content

Commit

Permalink
core: hal: disable _tzcnt_u32 for ARM64EC
Browse files Browse the repository at this point in the history
  • Loading branch information
Kumataro committed Jul 13, 2024
1 parent 15783d6 commit e906f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/include/opencv2/core/hal/intrin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e906f0f

Please sign in to comment.