| 72 | #ifdef VTK_USE_MPI_IO |
| 73 | template <class T> |
| 74 | inline 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. |
| 89 | template <> |
no outgoing calls
no test coverage detected