Re:Understanding Integer Overflow in C/C++ (2012) [pdf]
by pcwalton on Saturday July 09, 2016 @04:22PM
(#12063136)
Depends. The problem is not so much the overhead of the check itself as that it introduces a lot of control flow edges which interfere with optimizations. For example, on x86 you can kiss most uses of LEA goodbye...
[ Parent
| on HN ]