Commit 49119e31 authored by Sam Lantinga's avatar Sam Lantinga

fixed formatting

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403291
parent b8cbb6cd
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#define SSE_BEGIN \ #define SSE_BEGIN \
__m128 c128; \ __m128 c128; \
c128.m128_u32[0] = color; \ c128.m128_u32[0] = color; \
c128.m128_u32[1] = color; \ c128.m128_u32[1] = color; \
c128.m128_u32[2] = color; \ c128.m128_u32[2] = color; \
c128.m128_u32[3] = color; c128.m128_u32[3] = color;
#else #else
#define SSE_BEGIN \ #define SSE_BEGIN \
DECLARE_ALIGNED(Uint32, cccc[4], 16); \ DECLARE_ALIGNED(Uint32, cccc[4], 16); \
...@@ -71,7 +71,7 @@ SDL_FillRect##bpp##SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h) \ ...@@ -71,7 +71,7 @@ SDL_FillRect##bpp##SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h) \
if (adjust < 16) { \ if (adjust < 16) { \
n -= adjust; \ n -= adjust; \
adjust /= bpp; \ adjust /= bpp; \
while(adjust--) { \ while (adjust--) { \
*((type *)p) = (type)color; \ *((type *)p) = (type)color; \
p += bpp; \ p += bpp; \
} \ } \
...@@ -81,7 +81,7 @@ SDL_FillRect##bpp##SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h) \ ...@@ -81,7 +81,7 @@ SDL_FillRect##bpp##SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h) \
if (n & 63) { \ if (n & 63) { \
int remainder = (n & 63); \ int remainder = (n & 63); \
remainder /= bpp; \ remainder /= bpp; \
while(remainder--) { \ while (remainder--) { \
*((type *)p) = (type)color; \ *((type *)p) = (type)color; \
p += bpp; \ p += bpp; \
} \ } \
...@@ -136,7 +136,7 @@ SDL_FillRect##bpp##MMX(Uint8 *pixels, int pitch, Uint32 color, int w, int h) \ ...@@ -136,7 +136,7 @@ SDL_FillRect##bpp##MMX(Uint8 *pixels, int pitch, Uint32 color, int w, int h) \
if (adjust < 8) { \ if (adjust < 8) { \
n -= adjust; \ n -= adjust; \
adjust /= bpp; \ adjust /= bpp; \
while(adjust--) { \ while (adjust--) { \
*((type *)p) = (type)color; \ *((type *)p) = (type)color; \
p += bpp; \ p += bpp; \
} \ } \
...@@ -146,7 +146,7 @@ SDL_FillRect##bpp##MMX(Uint8 *pixels, int pitch, Uint32 color, int w, int h) \ ...@@ -146,7 +146,7 @@ SDL_FillRect##bpp##MMX(Uint8 *pixels, int pitch, Uint32 color, int w, int h) \
if (n & 63) { \ if (n & 63) { \
int remainder = (n & 63); \ int remainder = (n & 63); \
remainder /= bpp; \ remainder /= bpp; \
while(remainder--) { \ while (remainder--) { \
*((type *)p) = (type)color; \ *((type *)p) = (type)color; \
p += bpp; \ p += bpp; \
} \ } \
......
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