diff options
author | singler <singler@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-23 08:09:50 +0000 |
---|---|---|
committer | singler <singler@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-23 08:09:50 +0000 |
commit | 3023817126766ce34994dcfb0c4ed15b19286829 (patch) | |
tree | 11326eb089485811e883e7782d51fe2a18e33038 /libstdc++-v3/include/parallel/numeric | |
parent | 56a1c361c58e42af9b73a30829e393fd0b276716 (diff) | |
download | gcc-3023817126766ce34994dcfb0c4ed15b19286829.tar.gz |
2009-09-23 Johannes Singler <singler@ira.uka.de>
* include/parallel/algobase.h: Uglify internal identifiers;
correct line breaks.
* include/parallel/algo.h: Likewise.
* include/parallel/base.h: Likewise.
* include/parallel/equally_split.h: Likewise.
* include/parallel/find.h: Likewise.
* include/parallel/find_selectors.h: Likewise.
* include/parallel/for_each_selectors.h: Likewise.
* include/parallel/list_partition.h: Likewise.
* include/parallel/losertree.h: Likewise.
* include/parallel/merge.h: Likewise.
* include/parallel/multiseq_selection.h: Likewise.
* include/parallel/multiway_merge.h: Likewise.
* include/parallel/multiway_mergesort.h: Likewise.
* include/parallel/numeric: Likewise.
* include/parallel/numericfwd.h: Likewise.
* include/parallel/omp_loop.h: Likewise.
* include/parallel/omp_loop_static.h: Likewise.
* include/parallel/par_loop.h: Likewise.
* include/parallel/partition.h: Likewise.
* include/parallel/random_shuffle.h: Likewise.
* include/parallel/search.h: Likewise.
* include/parallel/sort.h: Likewise.
* include/parallel/workstealing.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152061 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/parallel/numeric')
-rw-r--r-- | libstdc++-v3/include/parallel/numeric | 69 |
1 files changed, 35 insertions, 34 deletions
diff --git a/libstdc++-v3/include/parallel/numeric b/libstdc++-v3/include/parallel/numeric index 5d03e679c27..de53f49e9f0 100644 --- a/libstdc++-v3/include/parallel/numeric +++ b/libstdc++-v3/include/parallel/numeric @@ -174,23 +174,24 @@ __gnu_parallel::sequential_tag()); } __first1, __last1, __first2, __init); } template<typename _IIter1, typename _IIter2, typename _Tp, - typename BinaryFunction1, typename BinaryFunction2> + typename _BinaryFunction1, typename _BinaryFunction2> inline _Tp - inner_product(_IIter1 __first1, _IIter1 __last1, - _IIter2 __first2, _Tp __init, BinaryFunction1 __binary_op1, - BinaryFunction2 __binary_op2, __gnu_parallel::sequential_tag) + inner_product(_IIter1 __first1, _IIter1 __last1, + _IIter2 __first2, _Tp __init, _BinaryFunction1 __binary_op1, + _BinaryFunction2 __binary_op2, + __gnu_parallel::sequential_tag) { return _GLIBCXX_STD_P::inner_product(__first1, __last1, __first2, __init, __binary_op1, __binary_op2); } // Parallel algorithm for random access iterators. template<typename _RAIter1, typename _RAIter2, - typename _Tp, typename BinaryFunction1, typename BinaryFunction2> + typename _Tp, typename _BinaryFunction1, typename _BinaryFunction2> _Tp __inner_product_switch(_RAIter1 __first1, _RAIter1 __last1, _RAIter2 __first2, _Tp __init, - BinaryFunction1 __binary_op1, - BinaryFunction2 __binary_op2, + _BinaryFunction1 __binary_op1, + _BinaryFunction2 __binary_op2, random_access_iterator_tag, random_access_iterator_tag, __gnu_parallel::_Parallelism __parallelism_tag @@ -219,24 +220,24 @@ __gnu_parallel::sequential_tag()); } // No parallelism for input iterators. template<typename _IIter1, typename _IIter2, typename _Tp, - typename BinaryFunction1, typename BinaryFunction2, + typename _BinaryFunction1, typename _BinaryFunction2, typename _IteratorTag1, typename _IteratorTag2> inline _Tp __inner_product_switch(_IIter1 __first1, _IIter1 __last1, _IIter2 __first2, _Tp __init, - BinaryFunction1 __binary_op1, - BinaryFunction2 __binary_op2, + _BinaryFunction1 __binary_op1, + _BinaryFunction2 __binary_op2, _IteratorTag1, _IteratorTag2) { return inner_product(__first1, __last1, __first2, __init, __binary_op1, __binary_op2, __gnu_parallel::sequential_tag()); } template<typename _IIter1, typename _IIter2, typename _Tp, - typename BinaryFunction1, typename BinaryFunction2> + typename _BinaryFunction1, typename _BinaryFunction2> inline _Tp inner_product(_IIter1 __first1, _IIter1 __last1, - _IIter2 __first2, _Tp __init, BinaryFunction1 __binary_op1, - BinaryFunction2 __binary_op2, + _IIter2 __first2, _Tp __init, _BinaryFunction1 __binary_op1, + _BinaryFunction2 __binary_op2, __gnu_parallel::_Parallelism __parallelism_tag) { typedef iterator_traits<_IIter1> _TraitsType1; @@ -252,11 +253,11 @@ __gnu_parallel::sequential_tag()); } } template<typename _IIter1, typename _IIter2, typename _Tp, - typename BinaryFunction1, typename BinaryFunction2> + typename _BinaryFunction1, typename _BinaryFunction2> inline _Tp inner_product(_IIter1 __first1, _IIter1 __last1, - _IIter2 __first2, _Tp __init, BinaryFunction1 __binary_op1, - BinaryFunction2 __binary_op2) + _IIter2 __first2, _Tp __init, _BinaryFunction1 __binary_op1, + _BinaryFunction2 __binary_op2) { typedef iterator_traits<_IIter1> _TraitsType1; typedef typename _TraitsType1::iterator_category _IteratorCategory1; @@ -275,18 +276,18 @@ __gnu_parallel::sequential_tag()); } _IIter2 __first2, _Tp __init, __gnu_parallel::_Parallelism __parallelism_tag) { - typedef iterator_traits<_IIter1> traits_type1; - typedef typename traits_type1::value_type value_type1; - typedef iterator_traits<_IIter2> traits_type2; - typedef typename traits_type2::value_type value_type2; + typedef iterator_traits<_IIter1> _TraitsType1; + typedef typename _TraitsType1::value_type _ValueType1; + typedef iterator_traits<_IIter2> _TraitsType2; + typedef typename _TraitsType2::value_type _ValueType2; typedef typename - __gnu_parallel::_Multiplies<value_type1, value_type2>::__result + __gnu_parallel::_Multiplies<_ValueType1, _ValueType2>::__result _MultipliesResultType; return inner_product(__first1, __last1, __first2, __init, __gnu_parallel::_Plus<_Tp, _MultipliesResultType>(), __gnu_parallel:: - _Multiplies<value_type1, value_type2>(), + _Multiplies<_ValueType1, _ValueType2>(), __parallelism_tag); } @@ -295,18 +296,18 @@ __gnu_parallel::sequential_tag()); } inner_product(_IIter1 __first1, _IIter1 __last1, _IIter2 __first2, _Tp __init) { - typedef iterator_traits<_IIter1> traits_type1; - typedef typename traits_type1::value_type value_type1; - typedef iterator_traits<_IIter2> traits_type2; - typedef typename traits_type2::value_type value_type2; + typedef iterator_traits<_IIter1> _TraitsType1; + typedef typename _TraitsType1::value_type _ValueType1; + typedef iterator_traits<_IIter2> _TraitsType2; + typedef typename _TraitsType2::value_type _ValueType2; typedef typename - __gnu_parallel::_Multiplies<value_type1, value_type2>::__result + __gnu_parallel::_Multiplies<_ValueType1, _ValueType2>::__result _MultipliesResultType; return inner_product(__first1, __last1, __first2, __init, __gnu_parallel::_Plus<_Tp, _MultipliesResultType>(), __gnu_parallel:: - _Multiplies<value_type1, value_type2>()); + _Multiplies<_ValueType1, _ValueType2>()); } // Sequential fallback. @@ -368,8 +369,8 @@ __gnu_parallel::sequential_tag()); } partial_sum(_IIter __begin, _IIter __end, _OutputIterator __result, _BinaryOperation __binary_op) { - typedef iterator_traits<_IIter> traitsi_type; - typedef typename traitsi_type::iterator_category _IIteratorCategory; + typedef iterator_traits<_IIter> _ITraitsType; + typedef typename _ITraitsType::iterator_category _IIteratorCategory; typedef iterator_traits<_OutputIterator> _OTraitsType; typedef typename _OTraitsType::iterator_category _OIterCategory; @@ -474,8 +475,8 @@ __gnu_parallel::sequential_tag()); } _OutputIterator __result, _BinaryOperation __binary_op, __gnu_parallel::_Parallelism __parallelism_tag) { - typedef iterator_traits<_IIter> traitsi_type; - typedef typename traitsi_type::iterator_category _IIteratorCategory; + typedef iterator_traits<_IIter> _ITraitsType; + typedef typename _ITraitsType::iterator_category _IIteratorCategory; typedef iterator_traits<_OutputIterator> _OTraitsType; typedef typename _OTraitsType::iterator_category _OIterCategory; @@ -491,8 +492,8 @@ __gnu_parallel::sequential_tag()); } adjacent_difference(_IIter __begin, _IIter __end, _OutputIterator __result, _BinaryOperation __binary_op) { - typedef iterator_traits<_IIter> traitsi_type; - typedef typename traitsi_type::iterator_category _IIteratorCategory; + typedef iterator_traits<_IIter> _ITraitsType; + typedef typename _ITraitsType::iterator_category _IIteratorCategory; typedef iterator_traits<_OutputIterator> _OTraitsType; typedef typename _OTraitsType::iterator_category _OIterCategory; |