21 if (start_chunk == end_chunk) {
22 aligned_ranges.
prefix = range;
27 if (range.
start() != start_chunk) {
28 prefix_size = alignment - (range.
start() &
mask);
36 range.
size() - prefix_size - suffix_size);
39 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 float4 mask(const int4 mask, const float4 a)
AlignedIndexRanges split_index_range_by_alignment(const IndexRange range, const int64_t alignment)
std::ostream & operator<<(std::ostream &stream, const eAlpha &space)