MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkMPIImageReaderMaskBits

Function vtkMPIImageReaderMaskBits

IO/MPIImage/vtkMPIImageReader.cxx:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72#ifdef VTK_USE_MPI_IO
73template <class T>
74inline void vtkMPIImageReaderMaskBits(T* data, vtkIdType length, vtkTypeUInt64 _mask)
75{
76 T mask = (T)_mask;
77
78 // If the mask is the identity, just return.
79 if ((_mask == (vtkTypeUInt64)~0UL) || (mask == (T)~0) || (_mask == 0))
80 return;
81
82 for (vtkIdType i = 0; i < length; i++)
83 {
84 data[i] &= mask;
85 }
86}
87
88// Override float and double because masking bits for them makes no sense.
89template <>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected