[XviD-devel] Inline assembly using mmx sse2

liang jian jianliang79 at gmail.com
Wed May 30 12:19:24 CEST 2007


you should write as following:

__asm{
   pxor    xmm7,xmm7
   movq  xmm1, QWORD PTR [temp_int]
   punpcklbw  xmm7,xmm1
}

On 5/30/07, kabbin <kabbin26 at yahoo.com.tw> wrote:
>
> Hello :
>
>       When I porting from linux to windows Visual Studio 2005,
> I got some trouble on inline assembly.
>
> __asm{
>    pxor    xmm7,xmm7
>    movq  xmm1,temp_int
>    punpcklbw  xmm7,xmm1
> }
>
> It shows error message on  "movq xmm1.temp_int"
> which shows that : error C2415: improper operand type
>
> Is it due that the type of xmm1 is float ?
> Though It build ok if   "movq  mm1,temp_int " .
> But I think it is a bad idea to replace xmm1 by mm1 shows in whole source
> code.
> Could anybody help me ? Thanks.
>
>
> ___________________________________________________
> 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
> http://messenger.yahoo.com.tw/
> _______________________________________________
> XviD-devel mailing list
> XviD-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
>


More information about the XviD-devel mailing list