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. :)
slouken@740
     1
slouken@740
     2
/* Test program to check SDL's CPU feature detection */
slouken@740
     3
slouken@740
     4
#include <stdio.h>
slouken@740
     5
slouken@740
     6
#include "SDL.h"
slouken@740
     7
#include "SDL_cpuinfo.h"
slouken@740
     8
slouken@740
     9
int main(int argc, char *argv[])
slouken@740
    10
{
slouken@740
    11
	printf("MMX %s\n", SDL_HasMMX() ? "detected" : "not detected");
slouken@740
    12
	printf("3DNow %s\n", SDL_Has3DNow() ? "detected" : "not detected");
slouken@740
    13
	printf("SSE %s\n", SDL_HasSSE() ? "detected" : "not detected");
slouken@740
    14
	return(0);
slouken@740
    15
}