Fixed bug 2376 - no SDL_HasAVX
Haneef Mubarak AVX is the successor to SSE* and is fairly widely available. As such, it really ought to be detectable. This functionality ought to be trivial to implement, and not having it means being forced to write an ugly workaround to check for AVX (so that normal SSE can be used if AVX is not available). Here is an example on detecting AVX from SO (it actually shows ways to cehck for all of teh fancy instructions): http://stackoverflow.com/questions/6121792/how-to-check-if-a-cpu-supports-the-sse3-instruction-set
This commit is contained in:
parent
8ba565fffb
commit
3bd0e9002e
6 changed files with 45 additions and 0 deletions
|
@ -153,6 +153,7 @@ TestCPUInfo(SDL_bool verbose)
|
|||
SDL_Log("SSE3 %s\n", SDL_HasSSE3()? "detected" : "not detected");
|
||||
SDL_Log("SSE4.1 %s\n", SDL_HasSSE41()? "detected" : "not detected");
|
||||
SDL_Log("SSE4.2 %s\n", SDL_HasSSE42()? "detected" : "not detected");
|
||||
SDL_Log("AVX %s\n", SDL_HasAVX()? "detected" : "not detected");
|
||||
SDL_Log("System RAM %d MB\n", SDL_GetSystemRAM());
|
||||
}
|
||||
return (0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue