SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | SDL_CACHELINE_SIZE 128 |
Functions | |
int | SDL_GetCPUCount (void) |
int | SDL_GetCPUCacheLineSize (void) |
SDL_bool | SDL_HasRDTSC (void) |
SDL_bool | SDL_HasAltiVec (void) |
SDL_bool | SDL_HasMMX (void) |
SDL_bool | SDL_Has3DNow (void) |
SDL_bool | SDL_HasSSE (void) |
SDL_bool | SDL_HasSSE2 (void) |
SDL_bool | SDL_HasSSE3 (void) |
SDL_bool | SDL_HasSSE41 (void) |
SDL_bool | SDL_HasSSE42 (void) |
SDL_bool | SDL_HasAVX (void) |
SDL_bool | SDL_HasAVX2 (void) |
SDL_bool | SDL_HasAVX512F (void) |
SDL_bool | SDL_HasNEON (void) |
SDL_bool | SDL_HasMSA (void) |
SDL_bool | SDL_HasLSX (void) |
SDL_bool | SDL_HasLASX (void) |
int | SDL_GetSystemRAM (void) |
CPU feature detection for SDL.
Definition in file SDL_cpuinfo.h.
#define SDL_CACHELINE_SIZE 128 |
Definition at line 103 of file SDL_cpuinfo.h.
Referenced by SDL_GetCPUCacheLineSize().
int SDL_GetCPUCacheLineSize | ( | void | ) |
This function returns the L1 cache line size of the CPU
This is useful for determining multi-threaded structure padding or SIMD prefetch sizes.
Definition at line 633 of file SDL_cpuinfo.c.
References cpuid, d, SDL_CACHELINE_SIZE, SDL_GetCPUType(), SDL_strcmp, and void.
Referenced by SDL_SIMDFree().
int SDL_GetCPUCount | ( | void | ) |
This function returns the number of CPU cores available.
Definition at line 483 of file SDL_cpuinfo.c.
References NULL, and SDL_CPUCount.
Referenced by SDL_SIMDFree().
int SDL_GetSystemRAM | ( | void | ) |
This function returns the amount of RAM configured in the system, in MB.
Definition at line 827 of file SDL_cpuinfo.c.
References NULL, and SDL_SystemRAM.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has 3DNow! features.
Definition at line 747 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_3DNOW.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has AltiVec features.
Definition at line 735 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_ALTIVEC.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has AVX features.
Definition at line 783 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_AVX.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has AVX2 features.
Definition at line 789 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_AVX2.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has AVX-512F (foundation) features.
Definition at line 795 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_AVX512F.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has LASX (LOONGARCH SIMD) features.
Definition at line 819 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_LASX.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has LSX (LOONGARCH SIMD) features.
Definition at line 813 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_LSX.
Referenced by SDL_SIMDFree(), and yuv_rgb_lsx().
This function returns true if the CPU has MMX features.
Definition at line 741 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_MMX.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has MSA (MIPS SIMD) features.
Definition at line 807 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_MSA.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has NEON (ARM SIMD) features.
Definition at line 801 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_NEON.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has the RDTSC instruction.
Definition at line 729 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_RDTSC.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has SSE features.
Definition at line 753 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_SSE.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has SSE2 features.
Definition at line 759 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_SSE2.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has SSE3 features.
Definition at line 765 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_SSE3.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has SSE4.1 features.
Definition at line 771 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_SSE41.
Referenced by SDL_SIMDFree().
This function returns true if the CPU has SSE4.2 features.
Definition at line 777 of file SDL_cpuinfo.c.
References CPU_FEATURE_AVAILABLE, and CPU_HAS_SSE42.
Referenced by SDL_SIMDFree().