adding __volatile__ on all DIB32 inline asm to ensure it doesn't get modified when optimizations are enabled

Thx w3seek 

svn path=/trunk/; revision=15857
This commit is contained in:
Magnus Olsen 2005-06-11 10:19:33 +00:00
parent 1503cdc0b4
commit c507c88f25

View file

@ -49,7 +49,7 @@ DIB_32BPP_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
PBYTE byteaddr = SurfObj->pvScan0 + y * SurfObj->lDelta;
PDWORD addr = (PDWORD)byteaddr + x1;
__asm__(
__asm__ __volatile__ (
" cld\n"
" mov %0, %%eax\n"
" test $0x03, %%edi\n" /* Align to fullword boundary */
@ -713,7 +713,7 @@ DIB_32BPP_ColorFill(SURFOBJ* DestSurface, RECTL* DestRect, ULONG color)
for (DestY = DestRect->top; DestY< DestRect->bottom; DestY++)
{
__asm__(
__asm__ __volatile__ (
" cld\n"
" mov %0, %%eax\n"
" test $0x03, %%edi\n" /* Align to fullword boundary */