In the current programmer's Guide on page 44 it seems that one is spawing one half of the function. What is the logic here?
void run_loop(first, last)
if (last -first) < grainsize
for (int i=first, i < last ++i) LOOP_BODY;
int mid = (last - first)/2;
cilk_spawn run_loop(first, mid);
It seems that the spawn is only going part (half) way.
Again from the line that spawn's a function it seems that you are only spawning a finction from the first to the mid. Then you are going back to the normal functionat the next line.
I do not see the logic.