Using inline assembler
Etienne via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Oct 9 07:06:24 PDT 2014
On 2014-10-09 9:46 AM, anonymous wrote:
> I'm out of my knowledge zone here, but it seems to work when you
> move the pointers to registers first:
>
> void store(__m128i* src, __m128i* dst) {
> asm
> {
> mov RAX, src;
> mov RBX, dst;
> movdqu XMM0, [RAX];
> movdqu [RBX], XMM0;
> }
> }
Absolutely incredible! My first useful working assembler code. You save
the day. Now I can probably write a whole SIMD library ;)
More information about the Digitalmars-d-learn
mailing list