On 22 November 2016 at 23:29, Daniel Kozak via Digitalmars-d <digitalmars-d@puremagic.com> wrote: > Dne 22.11.2016 v 17:36 Andrei Alexandrescu via Digitalmars-d napsal(a): > > >> On 11/22/2016 11:28 AM, Ilya Yaroshenko wrote: >>> >>> They are always software >>> https://github.com/dlang/druntime/blob/master/src/core/bitop.d --Ilya >> >> >> The intent is to have the compiler detect the pattern and insert the code. >> dmd does that IIRC (why is asm.dlang.org not working again?) and so does >> gdc: https://godbolt.org/g/WspkIX. -- Andrei >> > WTF? I hope you are not serious?
Ilya, Andrei, or both? It's a compilers job is to detect code patterns and emit suitable instructions for them. :-)