Time to move std.experimental.checkedint to std.checkedint ?

Elronnd elronnd at elronnd.net
Wed Mar 31 07:02:04 UTC 2021


On Wednesday, 31 March 2021 at 05:54:43 UTC, Andrei Alexandrescu 
wrote:
>> In the picture it still goes through the instruction decoder 
>> first, which means LEA and ADD/SHR might as well get decoded 
>> to the same microcode.
>
> That's not the case. It's separate hardware.

Less with the talking, more with the benchmarking!

If what you say is true, then a sequence of add interleaved with 
lea should be faster than the equivalent sequence, but with add 
replacing the lea.  Benchmark code is here 
https://files.catbox.moe/2zzrwe.tar; on my system, the 
performance is identical.


More information about the Digitalmars-d mailing list