28 #ifndef SDL_cpuinfo_h_ 29 #define SDL_cpuinfo_h_ 35 #if defined(_MSC_VER) && (_MSC_VER >= 1500) && (defined(_M_IX86) || defined(_M_X64)) 40 #ifndef __PRFCHWINTRIN_H 41 #define __PRFCHWINTRIN_H 43 static __inline__ void __attribute__((__always_inline__, __nodebug__))
44 _m_prefetch(
void *__P)
46 __builtin_prefetch (__P, 0, 3 );
66 #elif defined(__MINGW64_VERSION_MAJOR) 68 #if !defined(SDL_DISABLE_ARM_NEON_H) && defined(__ARM_NEON) 69 # include <arm_neon.h> 73 #if defined(HAVE_ALTIVEC_H) && defined(__ALTIVEC__) && !defined(__APPLE_ALTIVEC__) && defined(SDL_ENABLE_ALTIVEC_H) 76 #if !defined(SDL_DISABLE_ARM_NEON_H) 77 # if defined(__ARM_NEON) 78 # include <arm_neon.h> 79 # elif defined(__WINDOWS__) || defined(__WINRT__) 83 # include <arm_neon.h> 86 # if defined (_M_ARM64) 87 # include <arm64intr.h> 88 # include <arm64_neon.h> 95 #if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H) 98 #if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H) 99 #include <immintrin.h> 101 #if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H) 102 #include <mmintrin.h> 104 #if defined(__SSE__) && !defined(SDL_DISABLE_XMMINTRIN_H) 105 #include <xmmintrin.h> 107 #if defined(__SSE2__) && !defined(SDL_DISABLE_EMMINTRIN_H) 108 #include <emmintrin.h> 110 #if defined(__SSE3__) && !defined(SDL_DISABLE_PMMINTRIN_H) 111 #include <pmmintrin.h> 126 #define SDL_CACHELINE_SIZE 128 470 extern DECLSPEC
void * SDLCALL
SDL_SIMDAlloc(
const size_t len);
492 extern DECLSPEC
void * SDLCALL
SDL_SIMDRealloc(
void *mem,
const size_t len);
int SDL_GetCPUCount(void)
SDL_bool SDL_Has3DNow(void)
size_t SDL_SIMDGetAlignment(void)
SDL_bool SDL_HasRDTSC(void)
SDL_bool SDL_HasNEON(void)
SDL_bool SDL_HasAVX2(void)
void * SDL_SIMDAlloc(const size_t len)
SDL_bool SDL_HasSSE41(void)
SDL_bool SDL_HasSSE42(void)
SDL_bool SDL_HasSSE3(void)
SDL_bool SDL_HasSSE(void)
SDL_bool SDL_HasAVX512F(void)
void SDL_SIMDFree(void *ptr)
SDL_bool SDL_HasAVX(void)
SDL_bool SDL_HasAltiVec(void)
SDL_bool SDL_HasMMX(void)
SDL_bool SDL_HasARMSIMD(void)
SDL_bool SDL_HasSSE2(void)
int SDL_GetSystemRAM(void)
void * SDL_SIMDRealloc(void *mem, const size_t len)
int SDL_GetCPUCacheLineSize(void)