SDL-mirror/test/testcpuinfo.c
Sam Lantinga 9a9e553e1d Actually hook the cpuinfo module into the library. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40741
2003-11-18 02:16:57 +00:00

15 lines
369 B
C

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