diff options
Diffstat (limited to 'libstdc++-v3/include/parallel/for_each.h')
-rw-r--r-- | libstdc++-v3/include/parallel/for_each.h | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/libstdc++-v3/include/parallel/for_each.h b/libstdc++-v3/include/parallel/for_each.h index b585999f514..e6e573ddbbf 100644 --- a/libstdc++-v3/include/parallel/for_each.h +++ b/libstdc++-v3/include/parallel/for_each.h @@ -42,7 +42,7 @@ namespace __gnu_parallel { - /** @brief Chose the desired algorithm by evaluating @__c __parallelism_tag. + /** @brief Chose the desired algorithm by evaluating @c __parallelism_tag. * @param __begin Begin iterator of input sequence. * @param __end End iterator of input sequence. * @param __user_op A user-specified functor (comparator, predicate, @@ -69,31 +69,21 @@ namespace __gnu_parallel _Parallelism __parallelism_tag) { if (__parallelism_tag == parallel_unbalanced) - return __for_each_template_random_access_ed(__begin, __end, __user_op, - __functionality, __reduction, - __reduction_start, - __output, __bound); + return __for_each_template_random_access_ed + (__begin, __end, __user_op, __functionality, __reduction, + __reduction_start, __output, __bound); else if (__parallelism_tag == parallel_omp_loop) - return __for_each_template_random_access_omp_loop( - __begin, __end, __user_op, - __functionality, - __reduction, - __reduction_start, - __output, __bound); + return __for_each_template_random_access_omp_loop + (__begin, __end, __user_op, __functionality, __reduction, + __reduction_start, __output, __bound); else if (__parallelism_tag == parallel_omp_loop_static) - return __for_each_template_random_access_omp_loop( - __begin, __end, __user_op, - __functionality, - __reduction, - __reduction_start, - __output, __bound); + return __for_each_template_random_access_omp_loop + (__begin, __end, __user_op, __functionality, __reduction, + __reduction_start, __output, __bound); else //e. g. parallel_balanced - return __for_each_template_random_access_workstealing(__begin, __end, - __user_op, - __functionality, - __reduction, - __reduction_start, - __output, __bound); + return __for_each_template_random_access_workstealing + (__begin, __end, __user_op, __functionality, __reduction, + __reduction_start, __output, __bound); } } |