Re:The Performance Cost of Integer Overflow Checking
by scott_s on Thursday December 18, 2014 @11:15AM
(#8767941)
How do you feel about John Regehr's suggestion (http://blog.regehr.org/archives/1154) mentioned below? His suggestion sounds reasonable to me because the instructions would optionally trap on overflow. That should avoid the cost (which I have an intuition for) for the common case.
[ Parent
| on HN ]
Re:The Performance Cost of Integer Overflow Checking
by thesz on Thursday December 18, 2014 @03:55PM
(#8769563)
x86 has special into command to trap on overflow. Thus I don't know what he is talking about.
http://www.electronics.dit.ie/staff/tscarff/8086_instruction...
You can do without carry and overflow flags in long arithmetic just fine.