Stephen Harris wrote:
And now you've introduced program bloat, dual code paths, extra potential for bugs...
That's the way you handle low level stuff. All your Windows XP drivers are doing the same, and all the games which support SSE or MMX instructions.
Doing it the "one routine works for every condition" way usually means 10 times slower programs.