D ASM. Program fails

Iakh via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 22 12:34:52 PST 2016


On Friday, 22 January 2016 at 12:18:53 UTC, anonymous wrote:
> ----
> int pmovmskb(byte16 v)
> {
>     int r;
>     asm
>     {
>         movdqa XMM0, v;
>         pmovmskb EAX, XMM0;
>         mov r, EAX;
>     }
>     return r;
> }
> ----
This code returns 0 for any input v
>
> Removed the `inout` because it doesn't make sense. You may be 
> looking for `ref`.
yeah




More information about the Digitalmars-d-learn mailing list