On Wednesday, 14 May 2014 at 13:29:35 UTC, Dicebot wrote: > 9 int foo1(int max) > 10 { > 11 int sum = 0; > 12 for (auto i = 0; i < max; ++i) > 13 { > 14 sum += i*2; > 15 } > 16 return sum; > 17 } This isn't really a loop. It is an expression: n*(n+1) Try something more realistic such as doing alpha-blending to a buffer or DSP.