mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
remove outdated comments on type-punning
This commit is contained in:
parent
be7c185449
commit
563642400a
@ -38,9 +38,6 @@ struct PhiloxFunctor
|
||||
using philox_functor = vtkm::random::PhiloxFunctor2x32x10;
|
||||
using counters_type = typename philox_functor::counters_type;
|
||||
|
||||
// We deliberately use type punning to convert vtkm::Id into counters and then to
|
||||
// convert counters to vtkm::UInt64. All we need is a unique bit string as input
|
||||
// and output of the functor.
|
||||
auto idx = static_cast<vtkm::UInt64>(index);
|
||||
counters_type counters{ static_cast<vtkm::UInt32>(idx), static_cast<vtkm::UInt32>(idx >> 32) };
|
||||
counters_type result = philox_functor{}(counters, Seed);
|
||||
|
Loading…
Reference in New Issue
Block a user