comparison src/video/SDL_blit_N.c @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 19418e4422cb
children 5f52867ba65c
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h"
22 23
23 #include "SDL_video.h" 24 #include "SDL_video.h"
24 #include "SDL_endian.h" 25 #include "SDL_endian.h"
25 #include "SDL_cpuinfo.h" 26 #include "SDL_cpuinfo.h"
26 #include "SDL_blit.h" 27 #include "SDL_blit.h"
30 #if SDL_ALTIVEC_BLITTERS 31 #if SDL_ALTIVEC_BLITTERS
31 #ifdef HAVE_ALTIVEC_H 32 #ifdef HAVE_ALTIVEC_H
32 #include <altivec.h> 33 #include <altivec.h>
33 #endif 34 #endif
34 #define assert(X) 35 #define assert(X)
35 #ifdef MACOSX 36 #ifdef __MACOSX__
36 #include <sys/sysctl.h> 37 #include <sys/sysctl.h>
37 static size_t GetL3CacheSize( void ) 38 static size_t GetL3CacheSize( void )
38 { 39 {
39 const char key[] = "hw.l3cachesize"; 40 const char key[] = "hw.l3cachesize";
40 u_int64_t result = 0; 41 u_int64_t result = 0;
50 static size_t GetL3CacheSize( void ) 51 static size_t GetL3CacheSize( void )
51 { 52 {
52 /* XXX: Just guess G4 */ 53 /* XXX: Just guess G4 */
53 return 2097152; 54 return 2097152;
54 } 55 }
55 #endif /* MACOSX */ 56 #endif /* __MACOSX__ */
56 57
57 #if ((defined MACOSX) && (__GNUC__ < 4)) 58 #if (defined(__MACOSX__) && (__GNUC__ < 4))
58 #define VECUINT8_LITERAL(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) \ 59 #define VECUINT8_LITERAL(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) \
59 (vector unsigned char) ( a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p ) 60 (vector unsigned char) ( a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p )
60 #define VECUINT16_LITERAL(a,b,c,d,e,f,g,h) \ 61 #define VECUINT16_LITERAL(a,b,c,d,e,f,g,h) \
61 (vector unsigned short) ( a,b,c,d,e,f,g,h ) 62 (vector unsigned short) ( a,b,c,d,e,f,g,h )
62 #else 63 #else