Mercurial > sdl-ios-xcode
diff src/video/SDL_blit.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 | 93994f65c74c |
children | e1d228456537 |
line wrap: on
line diff
--- a/src/video/SDL_blit.c Thu Aug 16 02:14:13 2007 +0000 +++ b/src/video/SDL_blit.c Thu Aug 16 05:56:24 2007 +0000 @@ -110,7 +110,8 @@ #ifdef __MACOSX__ #include <sys/sysctl.h> -static SDL_bool SDL_UseAltivecPrefetch() +static SDL_bool +SDL_UseAltivecPrefetch() { const char key[] = "hw.l3cachesize"; u_int64_t result = 0; @@ -123,14 +124,16 @@ } } #else -static SDL_bool SDL_UseAltivecPrefetch() +static SDL_bool +SDL_UseAltivecPrefetch() { /* Just guess G4 */ return SDL_TRUE; } #endif /* __MACOSX__ */ -static SDL_loblit SDL_ChooseBlitFunc(SDL_BlitEntry *entries, int count) +static SDL_loblit +SDL_ChooseBlitFunc(SDL_BlitEntry * entries, int count) { int i; static Uint32 features = 0xffffffff;