25 if (start_chunk == end_chunk) {
26 aligned_ranges.
prefix = range;
31 if (range.
start() != start_chunk) {
32 prefix_size = alignment - (range.
start() &
mask);
40 range.
size() - prefix_size - suffix_size);
43 return aligned_ranges;
constexpr int64_t one_after_last() const
constexpr int64_t size() const
constexpr IndexRange()=default
constexpr int64_t start() const
ccl_device_inline float2 mask(const MaskType mask, const float2 a)
AlignedIndexRanges split_index_range_by_alignment(const IndexRange range, const int64_t alignment)
std::ostream & operator<<(std::ostream &stream, const eAlpha &space)