3 ms·
IMHO, C really should just standardize the standard checked overflow intrinsics. It's a lot saner than having users try to guess the correct overflow matching p
by jcranmer 6y ago
IMHO, C really should just standardize the standard checked overflow intrinsics. It's a lot saner than having users try to guess the correct overflow matching pattern (it's worse for multiplication), and many architectures make detecting overflow pretty trivial.
- MaxBarraclough 6y agoYou might like this blog post, We Need Hardware Traps for Integer Overflow. https://blog.regehr.org/archives/1154 https://blog.regehr.org/archives/1154