mirror of
https://github.com/yawut/SDL.git
synced 2026-09-13 03:26:04 -05:00
Actually hook the cpuinfo module into the library. :)
This commit is contained in:
@@ -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
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);
|
||||
}
|
||||
Reference in New Issue
Block a user