src/cpuinfo/SDL_cpuinfo.c
changeset 11985 36aa0bf7312b
parent 11984 987c5dc71309
child 11986 e307b74aa643
equal deleted inserted replaced
11984:987c5dc71309 11985:36aa0bf7312b
    75 #else
    75 #else
    76 #include <fcntl.h>
    76 #include <fcntl.h>
    77 #endif
    77 #endif
    78 #endif
    78 #endif
    79 
    79 
    80 #define CPU_HAS_RDTSC   0x00000001
    80 #define CPU_HAS_RDTSC   (1 << 0)
    81 #define CPU_HAS_ALTIVEC 0x00000002
    81 #define CPU_HAS_ALTIVEC (1 << 1)
    82 #define CPU_HAS_MMX     0x00000004
    82 #define CPU_HAS_MMX     (1 << 2)
    83 #define CPU_HAS_3DNOW   0x00000008
    83 #define CPU_HAS_3DNOW   (1 << 3)
    84 #define CPU_HAS_SSE     0x00000010
    84 #define CPU_HAS_SSE     (1 << 4)
    85 #define CPU_HAS_SSE2    0x00000020
    85 #define CPU_HAS_SSE2    (1 << 5)
    86 #define CPU_HAS_SSE3    0x00000040
    86 #define CPU_HAS_SSE3    (1 << 6)
    87 #define CPU_HAS_SSE41   0x00000100
    87 #define CPU_HAS_SSE41   (1 << 7)
    88 #define CPU_HAS_SSE42   0x00000200
    88 #define CPU_HAS_SSE42   (1 << 8)
    89 #define CPU_HAS_AVX     0x00000400
    89 #define CPU_HAS_AVX     (1 << 9)
    90 #define CPU_HAS_AVX2    0x00000800
    90 #define CPU_HAS_AVX2    (1 << 10)
    91 #define CPU_HAS_NEON    0x00001000
    91 #define CPU_HAS_NEON    (1 << 11)
    92 
    92 
    93 #if SDL_ALTIVEC_BLITTERS && HAVE_SETJMP && !__MACOSX__ && !__OpenBSD__
    93 #if SDL_ALTIVEC_BLITTERS && HAVE_SETJMP && !__MACOSX__ && !__OpenBSD__
    94 /* This is the brute force way of detecting instruction sets...
    94 /* This is the brute force way of detecting instruction sets...
    95    the idea is borrowed from the libmpeg2 library - thanks!
    95    the idea is borrowed from the libmpeg2 library - thanks!
    96  */
    96  */