include/SDL_cpuinfo.h
changeset 11762 c4900725a75a
parent 11699 afe271f50c70
child 11770 58a69c196061
     1.1 --- a/include/SDL_cpuinfo.h	Mon Dec 11 11:47:52 2017 -0800
     1.2 +++ b/include/SDL_cpuinfo.h	Mon Dec 11 12:00:12 2017 -0800
     1.3 @@ -59,10 +59,26 @@
     1.4  #ifdef __3dNOW__
     1.5  #include <mm3dnow.h>
     1.6  #endif
     1.7 -#if defined(__i386__) || defined(__x86_64__)
     1.8 +#if HAVE_IMMINTRIN_H
     1.9  #include <immintrin.h>
    1.10 +#else
    1.11 +#ifdef __MMX__
    1.12 +#include <mmintrin.h>
    1.13  #endif
    1.14 +#ifdef __3dNOW__
    1.15 +#include <mm3dnow.h>
    1.16  #endif
    1.17 +#ifdef __SSE__
    1.18 +#include <xmmintrin.h>
    1.19 +#endif
    1.20 +#ifdef __SSE2__
    1.21 +#include <emmintrin.h>
    1.22 +#endif
    1.23 +#ifdef __SSE3__
    1.24 +#include <pmmintrin.h>
    1.25 +#endif
    1.26 +#endif /* HAVE_IMMINTRIN_H */
    1.27 +#endif /* compiler version */
    1.28  
    1.29  #include "begin_code.h"
    1.30  /* Set up for C function definitions, even when using C++ */