Integer overflow checking

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 13 22:30:54 PDT 2016


On Thursday, 14 April 2016 at 04:52:12 UTC, Walter Bright wrote:
> On 4/13/2016 8:00 PM, deadalnix wrote:
>> Also, just checked, on sandy bridge, the LEA has 3clock 
>> latency (but start
>> earlier in the pipeline) and the add 1, so it is not as bad as 
>> it looks (it is
>> still bad).
>
> The size is larger, too (not so cache friendly). Integer 
> arithmetic is sort of the bread and butter of computer 
> programs, how much slowdown will people accept?

Maybe not everywhere, but some security related code and/or tool 
like ubsan surely can benefit from this.



More information about the Digitalmars-d mailing list