diff options
author | Paolo Carlini <pcarlini@suse.de> | 2008-01-15 02:06:31 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2008-01-15 02:06:31 +0000 |
commit | a4797b349c0596ce1f89e00c50269964adfaba78 (patch) | |
tree | 9e4663b583e7981720a29c4f39388e63eb01ea72 /libstdc++-v3/include/parallel/numeric | |
parent | ac10b0e16f14e4aaf318f3b26c947edeb11a2da5 (diff) | |
download | gcc-a4797b349c0596ce1f89e00c50269964adfaba78.tar.gz |
list_partition.h: Formatting fixes, inline tweaks.
2008-01-14 Paolo Carlini <pcarlini@suse.de>
* include/parallel/list_partition.h: Formatting fixes, inline tweaks.
* include/parallel/numeric: Likewise.
* include/parallel/balanced_quicksort.h: Likewise.
* include/parallel/unique_copy.h: Likewise.
* include/parallel/algobase.h: Likewise.
* include/parallel/algo.h: Likewise.
From-SVN: r131542
Diffstat (limited to 'libstdc++-v3/include/parallel/numeric')
-rw-r--r-- | libstdc++-v3/include/parallel/numeric | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libstdc++-v3/include/parallel/numeric b/libstdc++-v3/include/parallel/numeric index ccbdeee12c4..27bad63d3e5 100644 --- a/libstdc++-v3/include/parallel/numeric +++ b/libstdc++-v3/include/parallel/numeric @@ -78,7 +78,7 @@ namespace __parallel template<typename InputIterator, typename T, typename BinaryOperation, typename IteratorTag> - T + inline T accumulate_switch(InputIterator begin, InputIterator end, T init, BinaryOperation binary_op, IteratorTag) { return accumulate(begin, end, init, binary_op, @@ -345,10 +345,9 @@ namespace __parallel OutputIterator result, BinaryOperation bin_op, random_access_iterator_tag, random_access_iterator_tag) { - if (_GLIBCXX_PARALLEL_CONDITION(static_cast<__gnu_parallel:: - sequence_index_t>(end - begin) - >= __gnu_parallel::Settings:: - partial_sum_minimal_n)) + if (_GLIBCXX_PARALLEL_CONDITION( + static_cast<__gnu_parallel::sequence_index_t>(end - begin) + >= __gnu_parallel::Settings::partial_sum_minimal_n)) return __gnu_parallel::parallel_partial_sum(begin, end, result, bin_op); else |