Clang builds a working 2.6.36 Kernel
Clang builds a working 2.6.36 Kernel
Posted Oct 26, 2010 13:13 UTC (Tue) by juliank (guest, #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
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
