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
friend std::ostream & operator<<(std::ostream &stream, IndexRange range)
constexpr int64_t one_after_last() const
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
AlignedIndexRanges split_index_range_by_alignment(const IndexRange range, const int64_t alignment)
constexpr int64_t is_power_of_2(const int64_t x)