> > The optimizer (gcc version is 4.1.2) behaves much better with the > second function. I'm wondering what mysterious beast lurks in the > optimization routines... :) > I've just finished compiling gcc 4.2.3, and I'm very pleased to announce that all of the snippets posted to this thread are properly optimized (with -O2). Hail to the gcc team! Dario