comparison src/video/SDL_blit_copy.c @ 2249:5a58b57b6724

Added SSE and MMX optimization for SDL_FillRect()
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Aug 2007 05:56:24 +0000
parents 5cd2a2293cf0
children e1d228456537
comparison
equal deleted inserted replaced
2248:5cd2a2293cf0 2249:5a58b57b6724
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #include "SDL_video.h" 24 #include "SDL_video.h"
25 #include "SDL_blit.h" 25 #include "SDL_blit.h"
26 #include "SDL_blit_copy.h"
26 27
27 #ifdef __MMX__
28 #include <mmintrin.h>
29 #endif
30 #ifdef __SSE__
31 #include <xmmintrin.h>
32 #endif
33 28
34 #ifdef __MMX__ 29 #ifdef __MMX__
35 static __inline__ void 30 static __inline__ void
36 SDL_memcpyMMX(Uint8 * dst, const Uint8 * src, int len) 31 SDL_memcpyMMX(Uint8 * dst, const Uint8 * src, int len)
37 { 32 {