M1 10x faster than Intel at integral division, throughput one 64-bit divide in two cycles

Manu turkeyman at gmail.com
Thu May 27 08:46:20 UTC 2021


It's a strange thing to optimise... I seem to do an integer divide so
infrequently, that I can't imagine a measurable improvement in most code
I've ever written if it were substantially faster. I feel like I stopped
doing frequent integer divides right about the same time computers got
FPU's...

On Thu, May 13, 2021 at 12:00 PM Andrei Alexandrescu via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

>
> https://www.reddit.com/r/programming/comments/nawerv/benchmarking_division_and_libdivide_on_apple_m1/
>
> Integral division is the strongest arithmetic operation.
>
> I have a friend who knows some M1 internals. He said it's really Star
> Trek stuff.
>
> This will seriously challenge other CPU producers.
>
> What perspectives do we have to run the compiler on M1 and produce M1 code?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20210527/d8b3dce0/attachment.htm>


More information about the Digitalmars-d mailing list