Mercurial > sdl-ios-xcode
diff src/video/SDL_surface.c @ 2251:292bee385630
SSE and MMX intrinsics work with Visual Studio now...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Aug 2007 06:37:22 +0000 |
parents | 5a58b57b6724 |
children | 6d99edd791bf |
line wrap: on
line diff
--- a/src/video/SDL_surface.c Thu Aug 16 06:20:51 2007 +0000 +++ b/src/video/SDL_surface.c Thu Aug 16 06:37:22 2007 +0000 @@ -512,6 +512,14 @@ #ifdef __SSE__ /* *INDENT-OFF* */ +#ifdef _MSC_VER +#define SSE_BEGIN \ + __m128 c128; \ + c128.m128_u32[0] = color; \ + c128.m128_u32[1] = color; \ + c128.m128_u32[2] = color; \ + c128.m128_u32[3] = color; +#else #define SSE_BEGIN \ DECLARE_ALIGNED(Uint32, cccc[4], 16); \ cccc[0] = color; \ @@ -519,6 +527,7 @@ cccc[2] = color; \ cccc[3] = color; \ __m128 c128 = *(__m128 *)cccc; +#endif #define SSE_WORK \ for (i = n / 64; i--;) { \