/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.8/include/parallel/ |
tags.h | 57 * @param __num_threads Desired number of threads. */ 58 parallel_tag(_ThreadIndex __num_threads) 59 { _M_num_threads = __num_threads; } 72 * @param __num_threads Desired number of threads. */ 73 void set_num_threads(_ThreadIndex __num_threads) 74 { _M_num_threads = __num_threads; } 82 default_parallel_tag(_ThreadIndex __num_threads) 83 : parallel_tag(__num_threads) { } 112 exact_tag(_ThreadIndex __num_threads) 113 : parallel_tag(__num_threads) { } [all...] |
equally_split.h | 38 * The resulting sequence __s of length __num_threads+1 contains the 43 * @param __num_threads Number of parts 45 * @returns End of __splitter sequence, i.e. @c __s+__num_threads+1 */ 48 __equally_split(_DifferenceType __n, _ThreadIndex __num_threads, 51 _DifferenceType __chunk_length = __n / __num_threads; 52 _DifferenceType __num_longer_chunks = __n % __num_threads; 54 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) 70 * @param __num_threads Number of parts 76 _ThreadIndex __num_threads, 79 _DifferenceType __chunk_length = __n / __num_threads; [all...] |
par_loop.h | 78 _ThreadIndex __num_threads = __gnu_parallel::min<_DifferenceType> local 81 # pragma omp parallel num_threads(__num_threads) 85 __num_threads = omp_get_num_threads(); 87 (::operator new(__num_threads * sizeof(_Result))); 88 __constructed = new bool[__num_threads]; 97 __start = __equally_split_point(__length, __num_threads, __iam), 98 __stop = __equally_split_point(__length, __num_threads, __iam + 1); 119 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i)
|
omp_loop.h | 77 _ThreadIndex __num_threads = __gnu_parallel::min<_DifferenceType> local 82 # pragma omp parallel num_threads(__num_threads) 86 __num_threads = omp_get_num_threads(); 87 __thread_results = new _Result[__num_threads]; 89 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) 101 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i)
|
omp_loop_static.h | 77 _ThreadIndex __num_threads = std::min<_DifferenceType> local 82 # pragma omp parallel num_threads(__num_threads) 86 __num_threads = omp_get_num_threads(); 87 __thread_results = new _Result[__num_threads]; 89 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) 101 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i)
|
partial_sum.h | 101 _ThreadIndex __num_threads = 104 if (__num_threads < 2) 117 # pragma omp parallel num_threads(__num_threads) 121 __num_threads = omp_get_num_threads(); 123 __borders = new _DifferenceType[__num_threads + 2]; 126 __equally_split(__n, __num_threads + 1, __borders); 131 __n / (1.0f + __s.partial_sum_dilation * __num_threads)); 133 (__n - __first_part_length) / __num_threads; 135 __n - __num_threads * __chunk_length; 137 for (_ThreadIndex __i = 1; __i < (__num_threads + 1); ++__i [all...] |
quicksort.h | 46 * @param __num_threads Number of threads that are allowed to work on 56 __num_samples, _ThreadIndex __num_threads) 83 __pred, __num_threads); 96 * @param __num_threads Number of threads that are allowed to work on 103 _ThreadIndex __num_threads) 109 if (__num_threads <= 1) 122 if ((__num_threads % 2) == 1) 123 __num_threads_left = __num_threads / 2 + 1; 125 __num_threads_left = __num_threads / 2; 127 __pivot_rank = __n * __num_threads_left / __num_threads; [all...] |
unique_copy.h | 69 _ThreadIndex __num_threads = __get_max_threads(); local 71 # pragma omp parallel num_threads(__num_threads) 75 __num_threads = omp_get_num_threads(); 76 __borders = new _DifferenceType[__num_threads + 2]; 77 __equally_split(__size, __num_threads + 1, __borders); 78 __counter = new _DifferenceType[__num_threads + 1]; 132 for (_ThreadIndex __t = 0; __t < __num_threads; ++__t) 139 __begin = __borders[__num_threads]; 153 __counter[__num_threads] = __i; 171 for (_ThreadIndex __t = 0; __t < __num_threads + 1; __t++ [all...] |
balanced_quicksort.h | 95 * @param __num_threads Number of threads that are allowed to work on 101 _Compare __comp, _ThreadIndex __num_threads) 103 _GLIBCXX_PARALLEL_ASSERT(__num_threads > 0); 144 __num_threads); 167 * @param __num_threads 174 _ThreadIndex __iam, _ThreadIndex __num_threads, 183 if (__num_threads <= 1 || __n <= 1) 195 __qsb_divide(__begin, __end, __comp, __num_threads); 204 (1, std::min<_ThreadIndex>(__num_threads - 1, __split_pos 205 * __num_threads / __n)) 262 _ThreadIndex __num_threads = __tl._M_num_threads; local [all...] |
search.h | 110 _ThreadIndex __num_threads = std::max<_DifferenceType> local 117 # pragma omp parallel num_threads(__num_threads) 121 __num_threads = omp_get_num_threads(); 122 __splitters = new _DifferenceType[__num_threads + 1]; 123 __equally_split(__input_length, __num_threads, __splitters);
|
multiway_mergesort.h | 390 * @param __num_threads Number of threads to use. 397 _ThreadIndex __num_threads) 411 if (__num_threads > __n) 412 __num_threads = static_cast<_ThreadIndex>(__n); 419 # pragma omp parallel num_threads(__num_threads) 421 __num_threads = omp_get_num_threads(); //no more threads than requested 425 __sd._M_num_threads = __num_threads; 428 __sd._M_temporary = new _ValueType*[__num_threads]; 433 (_Settings::get().sort_mwms_oversampling * __num_threads - 1) 434 * __num_threads; [all...] |
find.h | 114 _ThreadIndex __num_threads = __get_max_threads(); local 115 # pragma omp parallel num_threads(__num_threads) 119 __num_threads = omp_get_num_threads(); 120 __borders = new _DifferenceType[__num_threads + 1]; 121 __equally_split(__length, __num_threads, __borders); 221 _ThreadIndex __num_threads = __get_max_threads(); local 222 # pragma omp parallel shared(__result) num_threads(__num_threads) 225 __num_threads = omp_get_num_threads(); 345 _ThreadIndex __num_threads = __get_max_threads(); local 346 # pragma omp parallel shared(__result) num_threads(__num_threads) [all...] |
workstealing.h | 135 _ThreadIndex __num_threads = __gnu_parallel::max<_ThreadIndex> local 139 # pragma omp parallel shared(__busy) num_threads(__num_threads) 143 __num_threads = omp_get_num_threads(); 146 __job = new _Job<_DifferenceType>[__num_threads * __stride]; 170 // (modulo __num_threads). 171 _RandomNumber __rand_gen(__iam, __num_threads); 181 (__iam * (__length / __num_threads)); 183 __my_job._M_last = (__iam == (__num_threads - 1) 185 : ((__iam + 1) * (__length / __num_threads) - 1));
|
random_shuffle.h | 260 * @param __num_threads Number of threads to use. 268 _ThreadIndex __num_threads, 279 if (__num_threads > __n) 280 __num_threads = static_cast<_ThreadIndex>(__n); 328 std::max<_BinIndex>(__num_threads, __num_bins)); 330 if (__num_threads <= 1) 342 # pragma omp parallel num_threads(__num_threads) 344 _ThreadIndex __num_threads = omp_get_num_threads(); local 347 __pus = new _DRSSorterPU<_RAIter, _RandomNumber>[__num_threads]; 349 __sd._M_temporaries = new _ValueType*[__num_threads]; [all...] |
partition.h | 52 * @param __num_threads Maximum number of threads to use for this task. 57 _Predicate __pred, _ThreadIndex __num_threads) 81 if (__dist >= 2 * __num_threads * __chunk_size) 82 # pragma omp parallel num_threads(__num_threads) 86 __num_threads = omp_get_num_threads(); 87 __reserved_left = new int[__num_threads]; 88 __reserved_right = new int[__num_threads]; 93 * __s.partition_chunk_share / (double)__num_threads); 98 while (__dist >= 2 * __num_threads * __chunk_size) 104 for (_ThreadIndex __r = 0; __r < __num_threads; ++__r [all...] |
set_operations.h | 375 _ThreadIndex __num_threads = local 379 # pragma omp parallel num_threads(__num_threads) 383 __num_threads = omp_get_num_threads(); 385 __borders = new _DifferenceType[__num_threads + 2]; 386 __equally_split(__size, __num_threads + 1, __borders); 387 __block_begins = new _IteratorPair[__num_threads + 1]; 390 __lengths = new _DifferenceType[__num_threads]; 447 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) 450 __block_begin = __block_begins[__num_threads];
|
multiway_merge.h | 1054 const _ThreadIndex __num_threads = omp_get_num_threads(); local 1138 const _ThreadIndex __num_threads = omp_get_num_threads(); local [all...] |