test/testcpuinfo.c
changeset 740 e70f80e98f60
child 778 8ac3f46f9d09
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/testcpuinfo.c	Tue Nov 18 02:16:57 2003 +0000
     1.3 @@ -0,0 +1,15 @@
     1.4 +
     1.5 +/* Test program to check SDL's CPU feature detection */
     1.6 +
     1.7 +#include <stdio.h>
     1.8 +
     1.9 +#include "SDL.h"
    1.10 +#include "SDL_cpuinfo.h"
    1.11 +
    1.12 +int main(int argc, char *argv[])
    1.13 +{
    1.14 +	printf("MMX %s\n", SDL_HasMMX() ? "detected" : "not detected");
    1.15 +	printf("3DNow %s\n", SDL_Has3DNow() ? "detected" : "not detected");
    1.16 +	printf("SSE %s\n", SDL_HasSSE() ? "detected" : "not detected");
    1.17 +	return(0);
    1.18 +}