include/SDL_cpuinfo.h
changeset 5390 fefd4f7b5214
parent 5389 24903690f48a
child 5407 40c9d744e595
equal deleted inserted replaced
5389:24903690f48a 5390:fefd4f7b5214
    40 #define __SSE__
    40 #define __SSE__
    41 #define __SSE2__
    41 #define __SSE2__
    42 #elif defined(__MINGW64_VERSION_MAJOR)
    42 #elif defined(__MINGW64_VERSION_MAJOR)
    43 #include <intrin.h>
    43 #include <intrin.h>
    44 #else
    44 #else
       
    45 #ifdef __ALTIVEC__
       
    46 #if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__)
       
    47 #include <altivec.h>
       
    48 #undef vector
       
    49 #undef pixel
       
    50 #undef bool
       
    51 #endif
       
    52 #endif
    45 #ifdef __MMX__
    53 #ifdef __MMX__
    46 #include <mmintrin.h>
    54 #include <mmintrin.h>
    47 #endif
    55 #endif
    48 #ifdef __3dNOW__
    56 #ifdef __3dNOW__
    49 #include <mm3dnow.h>
    57 #include <mm3dnow.h>
    51 #ifdef __SSE__
    59 #ifdef __SSE__
    52 #include <xmmintrin.h>
    60 #include <xmmintrin.h>
    53 #endif
    61 #endif
    54 #ifdef __SSE2__
    62 #ifdef __SSE2__
    55 #include <emmintrin.h>
    63 #include <emmintrin.h>
    56 #endif
       
    57 #ifdef HAVE_ALTIVEC_H
       
    58 #include <altivec.h>
       
    59 #endif
    64 #endif
    60 #endif
    65 #endif
    61 
    66 
    62 #include "begin_code.h"
    67 #include "begin_code.h"
    63 /* Set up for C function definitions, even when using C++ */
    68 /* Set up for C function definitions, even when using C++ */