Fixed bug in AVX detection and added AVX2 detection

This commit is contained in:
Sam Lantinga 2014-07-11 22:02:50 -07:00
parent f1ca7bd167
commit eb1c6044b2
4 changed files with 89 additions and 16 deletions

View file

@ -139,6 +139,11 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE42(void);
*/
extern DECLSPEC SDL_bool SDLCALL SDL_HasAVX(void);
/**
* This function returns true if the CPU has AVX2 features.
*/
extern DECLSPEC SDL_bool SDLCALL SDL_HasAVX2(void);
/**
* This function returns the amount of RAM configured in the system, in MB.
*/