Commit fcba6720 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Cleaned up tabs.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402480
parent 0e32fcbe
......@@ -100,7 +100,7 @@ void ColorRGBDitherYV12MMX1X( int *colortab, Uint32 *rgb_2_pix,
"pushl $0\n" // save a slot on the stack.
"pushl %%ebx\n" // save %%ebx.
"movl %0, %%ebx\n" // put the thing in ebx.
"movl %%ebx, 4(%%esp)\n" // put the thing in the stack slot.
"movl %%ebx,4(%%esp)\n" // put the thing in the stack slot.
"popl %%ebx\n" // get back %%ebx (the PIC register).
".align 8\n"
......@@ -108,8 +108,8 @@ void ColorRGBDitherYV12MMX1X( int *colortab, Uint32 *rgb_2_pix,
// create Cr (result in mm1)
"pushl %%ebx\n"
"movl 4(%%esp), %%ebx\n"
"movd (%%ebx), %%mm1\n" // 0 0 0 0 v3 v2 v1 v0
"movl 4(%%esp),%%ebx\n"
"movd (%%ebx),%%mm1\n" // 0 0 0 0 v3 v2 v1 v0
"popl %%ebx\n"
"pxor %%mm7,%%mm7\n" // 00 00 00 00 00 00 00 00
"movd (%2), %%mm2\n" // 0 0 0 0 l3 l2 l1 l0
......@@ -216,21 +216,21 @@ void ColorRGBDitherYV12MMX1X( int *colortab, Uint32 *rgb_2_pix,
"addl $4,%2\n" // lum+4
"leal 16(%3),%3\n" // row1+16
"leal 16(%5),%5\n" // row2+16
"addl $2, (%%esp)\n" // cr+2
"addl $2, %1\n" // cb+2
"addl $2,(%%esp)\n" // cr+2
"addl $2,%1\n" // cb+2
"addl $4,%6\n" // x+4
"cmpl %4,%6\n"
"jl 1b\n"
"addl %4, %2\n" // lum += cols
"addl %8, %3\n" // row1+= mod
"addl %8, %5\n" // row2+= mod
"movl $0, %6\n" // x=0
"cmpl %7, %2\n"
"addl %4,%2\n" // lum += cols
"addl %8,%3\n" // row1+= mod
"addl %8,%5\n" // row2+= mod
"movl $0,%6\n" // x=0
"cmpl %7,%2\n"
"jl 1b\n"
"addl $4, %%esp\n" // get rid of the stack slot we reserved.
"addl $4,%%esp\n" // get rid of the stack slot we reserved.
"emms\n" // reset MMX registers.
:
: "m" (cr), "r"(cb),"r"(lum),
......@@ -250,12 +250,11 @@ void Color565DitherYV12MMX1X( int *colortab, Uint32 *rgb_2_pix,
Uint16 *row2;
unsigned char* y = lum +cols*rows; /* Pointer to the end */
int x=0;
int x = 0;
row1 = (Uint16 *)out; /* 16 bit target */
row2 = (Uint16 *)out+cols+mod; /* start of second row */
mod = (mod+cols+mod)*2; /* increment for row1 in byte */
__asm__ __volatile__(
// tap dance to workaround the inability to use %%ebx at will...
// move one thing to the stack...
......@@ -408,7 +407,6 @@ void Color565DitherYV12MMX1X( int *colortab, Uint32 *rgb_2_pix,
"leal 16(%3), %3\n"
"leal 16(%5),%5\n" // row2+16
"jl 1b\n"
"addl %4, %2\n" // lum += cols
"addl %8, %3\n" // row1+= mod
......@@ -423,7 +421,8 @@ void Color565DitherYV12MMX1X( int *colortab, Uint32 *rgb_2_pix,
"r"(row1),"r"(cols),"r"(row2),"m"(x),"m"(y),"m"(mod),
"m"(MMX_0080w),"m"(MMX_Ugrn565),"m"(MMX_Ublu5x5),
"m"(MMX_00FFw),"m"(MMX_Vgrn565),"m"(MMX_Vred5x5),
"m"(MMX_Ycoeff),"m"(MMX_red565),"m"(MMX_grn565));
"m"(MMX_Ycoeff),"m"(MMX_red565),"m"(MMX_grn565)
);
}
#endif /* GCC3 i386 inline assembly */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment