28 #ifndef SDL_cpuinfo_h_ 29 #define SDL_cpuinfo_h_ 35 #if defined(_MSC_VER) && (_MSC_VER >= 1500) && (defined(_M_IX86) || defined(_M_X64)) 58 #elif defined(__MINGW64_VERSION_MAJOR) 62 #if defined(HAVE_ALTIVEC_H) && defined(__ALTIVEC__) && !defined(__APPLE_ALTIVEC__) && defined(SDL_ENABLE_ALTIVEC_H) 65 #if !defined(SDL_DISABLE_ARM_NEON_H) 66 # if defined(__ARM_NEON) 67 # include <arm_neon.h> 68 # elif defined(__WINDOWS__) || defined(__WINRT__) 72 # include <arm_neon.h> 75 # if defined (_M_ARM64) 76 # include <arm64intr.h> 77 # include <arm64_neon.h> 82 #if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H) 85 #if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H) 86 #include <immintrin.h> 88 #if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H) 91 #if defined(__SSE__) && !defined(SDL_DISABLE_XMMINTRIN_H) 92 #include <xmmintrin.h> 94 #if defined(__SSE2__) && !defined(SDL_DISABLE_EMMINTRIN_H) 95 #include <emmintrin.h> 97 #if defined(__SSE3__) && !defined(SDL_DISABLE_PMMINTRIN_H) 98 #include <pmmintrin.h> 114 #define SDL_CACHELINE_SIZE 128
DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void)
DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void)
DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void)
DECLSPEC SDL_bool SDLCALL SDL_HasSSE42(void)
DECLSPEC SDL_bool SDLCALL SDL_HasSSE41(void)
DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void)
DECLSPEC void SDLCALL SDL_SIMDFree(void *ptr)
Deallocate memory obtained from SDL_SIMDAlloc.
DECLSPEC int SDLCALL SDL_GetCPUCount(void)
DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void)
DECLSPEC void *SDLCALL SDL_SIMDAlloc(const size_t len)
Allocate memory in a SIMD-friendly way.
DECLSPEC int SDLCALL SDL_GetCPUCacheLineSize(void)
DECLSPEC SDL_bool SDLCALL SDL_HasAVX2(void)
DECLSPEC SDL_bool SDLCALL SDL_HasSSE3(void)
DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void)
DECLSPEC size_t SDLCALL SDL_SIMDGetAlignment(void)
Report the alignment this system needs for SIMD allocations.
DECLSPEC SDL_bool SDLCALL SDL_HasAVX512F(void)
DECLSPEC int SDLCALL SDL_GetSystemRAM(void)
DECLSPEC SDL_bool SDLCALL SDL_HasAVX(void)
DECLSPEC SDL_bool SDLCALL SDL_HasNEON(void)