|
SDL
2.0
|
Include dependency graph for SDL_cpuinfo.h:
This graph shows which files directly or indirectly include this file: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_HasARMSIMD (void) |
| SDL_bool | SDL_HasNEON (void) |
| int | SDL_GetSystemRAM (void) |
CPU feature detection for SDL.
Definition in file SDL_cpuinfo.h.
| #define SDL_CACHELINE_SIZE 128 |
Definition at line 77 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 693 of file SDL_cpuinfo.c.
References cpuid, d, SDL_CACHELINE_SIZE, SDL_GetCPUType(), SDL_strcmp, and void.
Referenced by SDL_GetSystemRAM().
| int SDL_GetCPUCount | ( | void | ) |
This function returns the number of CPU cores available.
Definition at line 551 of file SDL_cpuinfo.c.
References NULL, and SDL_CPUCount.
Referenced by SDL_GetSystemRAM().
| int SDL_GetSystemRAM | ( | void | ) |
This function returns the amount of RAM configured in the system, in MB.
Definition at line 880 of file SDL_cpuinfo.c.
References main, NULL, SDL_GetCPUCacheLineSize(), SDL_GetCPUCount(), SDL_GetCPUType(), SDL_Has3DNow(), SDL_HasAltiVec(), SDL_HasARMSIMD(), SDL_HasAVX(), SDL_HasAVX2(), SDL_HasMMX(), SDL_HasNEON(), SDL_HasRDTSC(), SDL_HasSSE(), SDL_HasSSE2(), SDL_HasSSE3(), SDL_HasSSE41(), SDL_HasSSE42(), and SDL_SystemRAM.
This function returns true if the CPU has 3DNow! features.
Definition at line 788 of file SDL_cpuinfo.c.
References CPU_HAS_3DNOW, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has AltiVec features.
Definition at line 770 of file SDL_cpuinfo.c.
References CPU_HAS_ALTIVEC, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has ARM SIMD (ARMv6) features.
Definition at line 860 of file SDL_cpuinfo.c.
References CPU_HAS_ARM_SIMD, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_CalculateBlitA(), SDL_FillRect(), and SDL_GetSystemRAM().
This function returns true if the CPU has AVX features.
Definition at line 842 of file SDL_cpuinfo.c.
References CPU_HAS_AVX, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has AVX2 features.
Definition at line 851 of file SDL_cpuinfo.c.
References CPU_HAS_AVX2, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has MMX features.
Definition at line 779 of file SDL_cpuinfo.c.
References CPU_HAS_MMX, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has NEON (ARM SIMD) features.
Definition at line 869 of file SDL_cpuinfo.c.
References CPU_HAS_NEON, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_CalculateBlitA(), SDL_FillRect(), and SDL_GetSystemRAM().
This function returns true if the CPU has the RDTSC instruction.
Definition at line 761 of file SDL_cpuinfo.c.
References CPU_HAS_RDTSC, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has SSE features.
Definition at line 797 of file SDL_cpuinfo.c.
References CPU_HAS_SSE, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has SSE2 features.
Definition at line 806 of file SDL_cpuinfo.c.
References CPU_HAS_SSE2, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has SSE3 features.
Definition at line 815 of file SDL_cpuinfo.c.
References CPU_HAS_SSE3, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has SSE4.1 features.
Definition at line 824 of file SDL_cpuinfo.c.
References CPU_HAS_SSE41, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().
This function returns true if the CPU has SSE4.2 features.
Definition at line 833 of file SDL_cpuinfo.c.
References CPU_HAS_SSE42, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_GetSystemRAM().