<div dir="ltr">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...</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 13, 2021 at 12:00 PM Andrei Alexandrescu via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://www.reddit.com/r/programming/comments/nawerv/benchmarking_division_and_libdivide_on_apple_m1/" rel="noreferrer" target="_blank">https://www.reddit.com/r/programming/comments/nawerv/benchmarking_division_and_libdivide_on_apple_m1/</a><br>
<br>
Integral division is the strongest arithmetic operation.<br>
<br>
I have a friend who knows some M1 internals. He said it's really Star <br>
Trek stuff.<br>
<br>
This will seriously challenge other CPU producers.<br>
<br>
What perspectives do we have to run the compiler on M1 and produce M1 code?<br>
</blockquote></div>