Completely disagree. Write the most straightforward code possible,
and then if there proves to be a problem, optimize. Optimizations
where there's no actual performance problem should be left to the
compiler.
Case in point: gcc-3.2 on -O2 on Intel is one instruction longer for
your version.
Hope that helps,
Rusty.
-- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/