zenilib
0.5.3.0
|
Go to the source code of this file.
Macros | |
#define | SDL_CACHELINE_SIZE 128 |
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().
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 471 of file SDL_cpuinfo.c.
References cpuid, d, SDL_CACHELINE_SIZE, SDL_GetCPUType(), and SDL_strcmp().
This function returns the number of CPU cores available.
Definition at line 334 of file SDL_cpuinfo.c.
References int, NULL, and SDL_CPUCount.
This function returns true if the CPU has 3DNow! features.
Definition at line 557 of file SDL_cpuinfo.c.
References CPU_HAS_3DNOW, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_CalculateBlitA(), and SDL_ChooseBlitFunc().
This function returns true if the CPU has AltiVec features.
Definition at line 539 of file SDL_cpuinfo.c.
References CPU_HAS_ALTIVEC, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_CalculateBlitN(), and SDL_ChooseBlitFunc().
This function returns true if the CPU has MMX features.
Definition at line 548 of file SDL_cpuinfo.c.
References CPU_HAS_MMX, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_BlitCopy(), SDL_CalculateBlitA(), SDL_ChooseBlitFunc(), SDL_FillRect(), and SDL_SW_SetupYUVDisplay().
This function returns true if the CPU has the RDTSC instruction.
Definition at line 530 of file SDL_cpuinfo.c.
References CPU_HAS_RDTSC, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
This function returns true if the CPU has SSE features.
Definition at line 566 of file SDL_cpuinfo.c.
References CPU_HAS_SSE, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_BlitCopy(), SDL_ChooseBlitFunc(), and SDL_FillRect().
This function returns true if the CPU has SSE2 features.
Definition at line 575 of file SDL_cpuinfo.c.
References CPU_HAS_SSE2, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
Referenced by SDL_ChooseBlitFunc().
This function returns true if the CPU has SSE3 features.
Definition at line 584 of file SDL_cpuinfo.c.
References CPU_HAS_SSE3, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
This function returns true if the CPU has SSE4.1 features.
Definition at line 593 of file SDL_cpuinfo.c.
References CPU_HAS_SSE41, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.
This function returns true if the CPU has SSE4.2 features.
Definition at line 602 of file SDL_cpuinfo.c.
References CPU_HAS_SSE42, SDL_FALSE, SDL_GetCPUFeatures(), and SDL_TRUE.