SDL Library

Dependents:   H261_decoder

Embed: (wiki syntax)

« Back to documentation index

SDL_cpuinfo.h File Reference

SDL_cpuinfo.h File Reference

CPU feature detection for SDL. More...

Go to the source code of this file.

Functions

DECLSPEC int SDLCALL SDL_GetCPUCount (void)
 This function returns the number of CPU cores available.
DECLSPEC int SDLCALL SDL_GetCPUCacheLineSize (void)
 This function returns the L1 cache line size of the CPU.
DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC (void)
 This function returns true if the CPU has the RDTSC instruction.
DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec (void)
 This function returns true if the CPU has AltiVec features.
DECLSPEC SDL_bool SDLCALL SDL_HasMMX (void)
 This function returns true if the CPU has MMX features.
DECLSPEC SDL_bool SDLCALL SDL_Has3DNow (void)
 This function returns true if the CPU has 3DNow! features.
DECLSPEC SDL_bool SDLCALL SDL_HasSSE (void)
 This function returns true if the CPU has SSE features.
DECLSPEC SDL_bool SDLCALL SDL_HasSSE2 (void)
 This function returns true if the CPU has SSE2 features.
DECLSPEC SDL_bool SDLCALL SDL_HasSSE3 (void)
 This function returns true if the CPU has SSE3 features.
DECLSPEC SDL_bool SDLCALL SDL_HasSSE41 (void)
 This function returns true if the CPU has SSE4.1 features.
DECLSPEC SDL_bool SDLCALL SDL_HasSSE42 (void)
 This function returns true if the CPU has SSE4.2 features.
DECLSPEC SDL_bool SDLCALL SDL_HasAVX (void)
 This function returns true if the CPU has AVX features.
DECLSPEC int SDLCALL SDL_GetSystemRAM (void)
 This function returns the amount of RAM configured in the system, in MB.

Detailed Description

CPU feature detection for SDL.

Definition in file SDL_cpuinfo.h.


Function Documentation

DECLSPEC int SDLCALL 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.

DECLSPEC int SDLCALL SDL_GetCPUCount ( void   )

This function returns the number of CPU cores available.

DECLSPEC int SDLCALL SDL_GetSystemRAM ( void   )

This function returns the amount of RAM configured in the system, in MB.

DECLSPEC SDL_bool SDLCALL SDL_Has3DNow ( void   )

This function returns true if the CPU has 3DNow! features.

DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec ( void   )

This function returns true if the CPU has AltiVec features.

DECLSPEC SDL_bool SDLCALL SDL_HasAVX ( void   )

This function returns true if the CPU has AVX features.

DECLSPEC SDL_bool SDLCALL SDL_HasMMX ( void   )

This function returns true if the CPU has MMX features.

DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC ( void   )

This function returns true if the CPU has the RDTSC instruction.

DECLSPEC SDL_bool SDLCALL SDL_HasSSE ( void   )

This function returns true if the CPU has SSE features.

DECLSPEC SDL_bool SDLCALL SDL_HasSSE2 ( void   )

This function returns true if the CPU has SSE2 features.

DECLSPEC SDL_bool SDLCALL SDL_HasSSE3 ( void   )

This function returns true if the CPU has SSE3 features.

DECLSPEC SDL_bool SDLCALL SDL_HasSSE41 ( void   )

This function returns true if the CPU has SSE4.1 features.

DECLSPEC SDL_bool SDLCALL SDL_HasSSE42 ( void   )

This function returns true if the CPU has SSE4.2 features.