make inline asm -O3 compatible (remove L1 and L2 label) thx blight and
alex to explain how to do that.
Modified: trunk/reactos/subsys/win32k/dib/dib16bpp.c
Modified: trunk/reactos/subsys/win32k/dib/dib24bpp.c
Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c
_____
Modified: trunk/reactos/subsys/win32k/dib/dib16bpp.c
--- trunk/reactos/subsys/win32k/dib/dib16bpp.c 2005-06-18 22:06:54 UTC
(rev 16064)
+++ trunk/reactos/subsys/win32k/dib/dib16bpp.c 2005-06-18 22:54:12 UTC
(rev 16065)
@@ -56,18 +56,18 @@
" or %0, %%eax\n"
" mov %2, %%edi\n"
" test $0x03, %%edi\n" /* Align to fullword boundary */
-" jz .L1\n"
+" jz 0f\n"
" stosw\n"
" dec %1\n"
-" jz .L2\n"
-".L1:\n"
+" jz 1f\n"
+"0:\n"
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
" shr $1,%%ecx\n"
" rep stosl\n" /* The actual fill */
" test $0x01, %1\n" /* One left to do at the right side? */
-" jz .L2\n"
+" jz 1f\n"
" stosw\n"
-".L2:\n"
+"1:\n"
: /* no output */
: "r"(c), "r"(Count), "m"(addr)
: "%eax", "%ecx", "%edi");
_____
Modified: trunk/reactos/subsys/win32k/dib/dib24bpp.c
--- trunk/reactos/subsys/win32k/dib/dib24bpp.c 2005-06-18 22:06:54 UTC
(rev 16064)
+++ trunk/reactos/subsys/win32k/dib/dib24bpp.c 2005-06-18 22:54:12 UTC
(rev 16065)
@@ -95,13 +95,13 @@
" movl %2, %%ecx\n" /* Load count */
" shr $2, %%ecx\n"
" movl %3, %%edi\n" /* Load dest */
-".L1:\n"
+"0:\n"
" movl %%eax, (%%edi)\n" /* Store 4 pixels, 12 bytes */
" movl %%ebx, 4(%%edi)\n"
" movl %%edx, 8(%%edi)\n"
" addl $12, %%edi\n"
" dec %%ecx\n"
-" jnz .L1\n"
+" jnz 0b\n"
" movl %%edi, %0\n"
: "=m"(addr)
: "m"(c), "m"(Count), "m"(addr)
_____
Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c
--- trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-18 22:06:54 UTC
(rev 16064)
+++ trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-18 22:54:12 UTC
(rev 16065)
@@ -54,11 +54,11 @@
" mov %0, %%eax\n"
" mov %2, %%edi\n"
" test $0x03, %%edi\n" /* Align to fullword boundary */
-" jnz .L1\n"
+" jnz 0f\n"
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
" rep stosl\n" /* The actual fill */
-" jmp .L2\n"
-".L1:\n"
+" jmp 1f\n"
+"0:\n"
" stosw\n"
" ror $0x10,%%eax\n"
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
@@ -66,7 +66,7 @@
" rep stosl\n" /* The actual fill */
" shr $0x10,%%eax\n"
" stosw\n"
-".L2:\n"
+"1:\n"
: /* no output */
: "m"(c), "r"(cx), "m"(addr)
: "%eax", "%ecx", "%edi");
Show replies by date