Actually hook the cpuinfo module into the library. :)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40741
This commit is contained in:
parent
9842d74f34
commit
9a9e553e1d
5 changed files with 28 additions and 3 deletions
15
test/testcpuinfo.c
Normal file
15
test/testcpuinfo.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
/* Test program to check SDL's CPU feature detection */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "SDL.h"
|
||||
#include "SDL_cpuinfo.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
printf("MMX %s\n", SDL_HasMMX() ? "detected" : "not detected");
|
||||
printf("3DNow %s\n", SDL_Has3DNow() ? "detected" : "not detected");
|
||||
printf("SSE %s\n", SDL_HasSSE() ? "detected" : "not detected");
|
||||
return(0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue