4 ms·
Exactly -- the premise would be that non-overflowing arithmetic would be the "fast path" and overflow would be truly exceptional. This is similar to null-refer
by mmastrac 12y ago
Exactly -- the premise would be that non-overflowing arithmetic would be the "fast path" and overflow would be truly exceptional.
This is similar to null-reference protection in various languages and runtimes, where null dereferences are caught by mapping guard pages at the beginning of memory. Dereferencing a pointer is optimistic and assumes that it will succeed, the same as arithmetic operations would in this proposal.