News for hackers. Stuff that matters.
Re:Will it optimize? by igorgue on Friday July 23, 2010 @02:03PM (#1541915)
#2 was an error I had, and a co-worker told me screaming that I was a crappy programmer because I did it, now that I know it's optimized I feel like he owns me an apology or maybe not :-)
Re:Will it optimize? by yuvi on Saturday July 24, 2010 @12:28AM (#1543099)
Were you using gcc?

I wouldn't be surprised if e.g. MSVC didn't perform that optimization since it doesn't have the pure function attribute.