Lines Matching refs:sum
18 the middle nodes. As it receives each value, it adds it to a running sum
19 of values. When the application is run to completion, the value of sum
20 will be equal to the sum of the sequence of squares and cubes from 1 to
44 int sum = 0;
53 return sum += v;
66 cout << "Sum is " << sum << "\n";
74 - one to add values to the global sum
78 with an unlimited concurrency. The summer node updates the sum through a
167 int sum = 0;
176 return sum += v;
185 cout << "Sum is " << sum << "\n";