comparison test/testcpuinfo.c @ 740:e70f80e98f60

Actually hook the cpuinfo module into the library. :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 18 Nov 2003 02:16:57 +0000
parents
children 8ac3f46f9d09
comparison
equal deleted inserted replaced
739:22dbf364c017 740:e70f80e98f60
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 }