Re: [AD] /src/i386/iblit32.s MMX alignment

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> from my limited understanding of ASM, the  /src/iblit32.s   MMX/SSE code
> opts out to a non-mmx implementation if the bitmap->w  is not 4 pixel
> aligned. the code is fine, but the docs make no mention of it.

Not exactly.  The code will use MMX/SSE as soon as there are more than 4 
pixels to blit:

   movl B_WIDTH, %ecx
   shrl $2, %ecx                   /* Are there more than 4 pixels? 
Otherwise, use non-MMX code */
   jz masked32_no_mmx
   
'jz' branches only if %ecx is 0 after the >> 2 shift, so not for 5 pixels.

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/