| 40 | |
| 41 | template<class T> |
| 42 | T ParallelSum( T array[], size_t n ) { |
| 43 | Sum<T> total; |
| 44 | tbb::parallel_reduce( tbb::blocked_range<T*>( array, array+n ), |
| 45 | total ); |
| 46 | return total.value; |
| 47 | } |
| 48 | |
| 49 | int main(int argc, char *argv[]) |
| 50 | { |
nothing calls this directly
no outgoing calls
no test coverage detected