June 09, 2004 ASM SSE Instruction | ||||
---|---|---|---|---|
| ||||
I would like to know how to tell the compiler to swallow following code: float rsqrt_sse(float n) { asm { rsqrtss xmm0, n; movss n, xmm0; } return (n); } Thanks in advance. Chr. Grade |
June 09, 2004 Re: ASM SSE Instruction | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chr. Grade | xmm0 => XMM0 should do the trick. Registers are all caps in D's assembler. "Chr. Grade" <Chr._member@pathlink.com> wrote in message news:ca6vat$28cn$1@digitaldaemon.com... > I would like to know how to tell the compiler to swallow following code: > > float rsqrt_sse(float n) > { > asm > { > rsqrtss xmm0, n; > movss n, xmm0; > } > > return (n); > } > > Thanks in advance. > Chr. Grade > > |
Copyright © 1999-2021 by the D Language Foundation