include/SDL_cpuinfo.h
changeset 11770 58a69c196061
parent 11762 c4900725a75a
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11769:f0aad4dbf696 11770:58a69c196061
    49 #endif /* __clang__ */
    49 #endif /* __clang__ */
    50 #elif defined(__MINGW64_VERSION_MAJOR)
    50 #elif defined(__MINGW64_VERSION_MAJOR)
    51 #include <intrin.h>
    51 #include <intrin.h>
    52 #else
    52 #else
    53 #ifdef __ALTIVEC__
    53 #ifdef __ALTIVEC__
    54 #if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__)
    54 #if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__) && !defined(SDL_DISABLE_ALTIVEC_H)
    55 #include <altivec.h>
    55 #include <altivec.h>
    56 #undef pixel
    56 #undef pixel
       
    57 #undef bool
    57 #endif
    58 #endif
    58 #endif
    59 #endif
    59 #ifdef __3dNOW__
    60 #if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)
    60 #include <mm3dnow.h>
    61 #include <mm3dnow.h>
    61 #endif
    62 #endif
    62 #if HAVE_IMMINTRIN_H
    63 #if HAVE_IMMINTRIN_H && !defined(SDL_DISABLE_IMMINTRIN_H)
    63 #include <immintrin.h>
    64 #include <immintrin.h>
    64 #else
    65 #else
    65 #ifdef __MMX__
    66 #if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H)
    66 #include <mmintrin.h>
    67 #include <mmintrin.h>
    67 #endif
    68 #endif
    68 #ifdef __3dNOW__
    69 #if defined(__SSE__) && !defined(SDL_DISABLE_XMMINTRIN_H)
    69 #include <mm3dnow.h>
       
    70 #endif
       
    71 #ifdef __SSE__
       
    72 #include <xmmintrin.h>
    70 #include <xmmintrin.h>
    73 #endif
    71 #endif
    74 #ifdef __SSE2__
    72 #if defined(__SSE2__) && !defined(SDL_DISABLE_EMMINTRIN_H)
    75 #include <emmintrin.h>
    73 #include <emmintrin.h>
    76 #endif
    74 #endif
    77 #ifdef __SSE3__
    75 #if defined(__SSE3__) && !defined(SDL_DISABLE_PMMINTRIN_H)
    78 #include <pmmintrin.h>
    76 #include <pmmintrin.h>
    79 #endif
    77 #endif
    80 #endif /* HAVE_IMMINTRIN_H */
    78 #endif /* HAVE_IMMINTRIN_H */
    81 #endif /* compiler version */
    79 #endif /* compiler version */
    82 
    80