Fix unresolved external symbol __popcnt on win-arm64
(cherry picked from commit 92a7bfc680a6d2cd62c6a40c628e72d77c5af26e)
This commit is contained in:
parent
0d793e8158
commit
df5b5bf321
@ -1492,7 +1492,7 @@ vtkm::Int32 CountSetBits(vtkm::UInt32 word)
|
||||
|
||||
return __builtin_popcount(word);
|
||||
|
||||
# elif defined(VTKM_MSVC)
|
||||
# elif defined(VTKM_MSVC) && !defined(_M_ARM64)
|
||||
|
||||
return static_cast<vtkm::Int32>(__popcnt(word));
|
||||
|
||||
@ -1534,7 +1534,7 @@ vtkm::Int32 CountSetBits(vtkm::UInt64 word)
|
||||
|
||||
return __builtin_popcountll(word);
|
||||
|
||||
# elif defined(VTKM_MSVC)
|
||||
# elif defined(VTKM_MSVC) && !defined(_M_ARM64)
|
||||
|
||||
return static_cast<vtkm::Int32>(__popcnt64(word));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user