test/testcpuinfo.c
author Sam Lantinga <slouken@libsdl.org>
Tue, 18 Nov 2003 02:16:57 +0000
changeset 740 e70f80e98f60
child 778 8ac3f46f9d09
permissions -rw-r--r--
Actually hook the cpuinfo module into the library. :)
     1 
     2 /* Test program to check SDL's CPU feature detection */
     3 
     4 #include <stdio.h>
     5 
     6 #include "SDL.h"
     7 #include "SDL_cpuinfo.h"
     8 
     9 int main(int argc, char *argv[])
    10 {
    11 	printf("MMX %s\n", SDL_HasMMX() ? "detected" : "not detected");
    12 	printf("3DNow %s\n", SDL_Has3DNow() ? "detected" : "not detected");
    13 	printf("SSE %s\n", SDL_HasSSE() ? "detected" : "not detected");
    14 	return(0);
    15 }