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:
Sam Lantinga 2003-11-18 02:16:57 +00:00
parent 9842d74f34
commit 9a9e553e1d
5 changed files with 28 additions and 3 deletions

15
test/testcpuinfo.c Normal file
View 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);
}