Lines Matching defs:__chunk_size
78 _DifferenceType __chunk_size = __s.partition_chunk_size;
81 if (__dist >= 2 * __num_threads * __chunk_size)
91 __chunk_size = std::max<_DifferenceType>
95 __chunk_size = __s.partition_chunk_size;
98 while (__dist >= 2 * __num_threads * __chunk_size)
102 _DifferenceType __num_chunks = __dist / __chunk_size;
131 __fetch_and_add(&__dist, -__chunk_size);
132 if (__former_dist < __chunk_size)
134 __fetch_and_add(&__dist, __chunk_size);
141 __fetch_and_add(&__left, __chunk_size);
143 __thread_left + (__chunk_size - 1);
150 __fetch_and_add(&__dist, -__chunk_size);
151 if (__former_dist < __chunk_size)
153 __fetch_and_add(&__dist, __chunk_size);
160 __fetch_and_add(&__right, -__chunk_size);
162 __thread_right - (__chunk_size - 1);
200 __leftnew = __left - __leftover_left * __chunk_size,
202 __rightnew = __right + __leftover_right * __chunk_size;
204 // <=> __thread_left_border + (__chunk_size - 1) >= __leftnew
210 / __chunk_size] = 1;
213 // <=> __thread_right_border - (__chunk_size - 1) <= __rightnew
219 / __chunk_size] = 1;
233 __swapstart = __leftold - (__r + 1) * __chunk_size;
242 - (__chunk_size - 1),
256 __swapstart = __rightold + __r * __chunk_size + 1;
266 + __chunk_size, __begin + __swapstart);