Lines Matching refs:num_threads
38 * The resulting sequence s of length num_threads+1 contains the splitting
43 * @param num_threads Number of parts
45 * @returns End of splitter sequence, i. e. @c s+num_threads+1 */
48 equally_split(difference_type n, thread_index_t num_threads, OutputIterator s)
50 difference_type chunk_length = n / num_threads;
51 difference_type num_longer_chunks = n % num_threads;
53 for (thread_index_t i = 0; i < num_threads; ++i)
69 * @param num_threads Number of parts
74 thread_index_t num_threads,
77 difference_type chunk_length = n / num_threads;
78 difference_type num_longer_chunks = n % num_threads;