Actually hook the cpuinfo module into the library. :)

This commit is contained in:
Sam Lantinga
2003-11-18 02:16:57 +00:00
parent 9981325fda
commit 7fe4f4e884
5 changed files with 28 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = no-dependencies
noinst_PROGRAMS = \
testver testtypes testhread testlock testerror testsem testtimer \
testver testtypes testcpuinfo testhread testlock testerror testsem testtimer \
loopwave testcdrom testkeys testvidinfo checkkeys testwin graywin \
testsprite testbitmap testalpha testgamma testpalette testwm \
threadwin testoverlay testoverlay2 testgl testjoystick

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);
}