mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
Fix unresolved external symbol __popcnt on win-arm64
(cherry picked from commit 0575e036d9fc0ea2dabb1cba07d2bcd9a5b5f750)
This commit is contained in:
parent
df5b5bf321
commit
70728978de
@ -2890,7 +2890,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));
|
||||
|
||||
@ -2932,7 +2932,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