View Single Post
  #3  
Old 11-26-2011, 06:11
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,116
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 110
Thanks Rcvd at 220 Times in 126 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
As I said, k remains constant during the execution of the loop. The compiler should see that as it compiles the loop which has no external references and no references to k. I'll just spilt it up manually into four loops and run each on a thread. If I can do it then the complier should be able to.

Git
Reply With Quote