Julian Foad <julian.f...@wandisco.com> writes: > This tells me that the hand-optimization is actually harmful and the > compiler does a 10% better job by itself. > > Have I made a mistake? > > What are the results for your system? > > (I'm using GCC 4.4.1 on an Intel Centrino laptop CPU.)
On my system (Intel Core 2 Duo, GCC 4.3.2, 64bit), the difference is smaller, about 5%. -- Philip