Clang builds a working 2.6.36 Kernel
Posted Oct 26, 2010 13:13 UTC (Tue) by
juliank (subscriber, #45896)
In reply to:
Clang builds a working 2.6.36 Kernel by juliank
Parent article:
Clang builds a working 2.6.36 Kernel
In
*va = (1 + b)*(b/2) - b
I missed a, and the solution was wrong. The correct way to calculate the sum of all values {x | a <= x < b} is:
*va = (b)*(b-1)/2 - (a)*(a-1)/2
(
Log in to post comments)