Re:Push ifs up and fors down
by jchw on Wednesday November 15, 2023 @05:29PM
(#38283524)
The short answer is absolutely not, even when you are sure that it should. Even something as simple as a naive byteswap function might wind up generating surprisingly suboptimal code depending on the compiler. If you really want to be sure, you're just going to have to check. (And if you want to check, a good tool is, of course, Compiler Explorer.)
[ Parent
| on HN ]
There are no comments on this comment yet.