Mercurial > sdl-ios-xcode
comparison src/video/SDL_blit.c @ 2255:17b2369756be
Use MMX intrinsics over GCC inline assembly
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Aug 2007 22:18:53 +0000 |
parents | 79e00f5561f4 |
children | 340942cfda48 |
comparison
equal
deleted
inserted
replaced
2254:79e00f5561f4 | 2255:17b2369756be |
---|---|
25 #include "SDL_sysvideo.h" | 25 #include "SDL_sysvideo.h" |
26 #include "SDL_blit.h" | 26 #include "SDL_blit.h" |
27 #include "SDL_blit_copy.h" | 27 #include "SDL_blit_copy.h" |
28 #include "SDL_RLEaccel_c.h" | 28 #include "SDL_RLEaccel_c.h" |
29 #include "SDL_pixels_c.h" | 29 #include "SDL_pixels_c.h" |
30 | |
31 #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && SDL_ASSEMBLY_ROUTINES | |
32 #define MMX_ASMBLIT | |
33 #endif | |
34 | |
35 #if defined(MMX_ASMBLIT) | |
36 #include "SDL_cpuinfo.h" | |
37 #include "mmx.h" | |
38 #endif | |
39 | 30 |
40 /* The general purpose software blit routine */ | 31 /* The general purpose software blit routine */ |
41 static int | 32 static int |
42 SDL_SoftBlit(SDL_Surface * src, SDL_Rect * srcrect, | 33 SDL_SoftBlit(SDL_Surface * src, SDL_Rect * srcrect, |
43 SDL_Surface * dst, SDL_Rect * dstrect) | 34 SDL_Surface * dst, SDL_Rect * dstrect) |