annotate test/testcpuinfo.c @ 772:5c5656163ebd

Fix buffer underrun problems on slow iBooks
author Sam Lantinga <slouken@libsdl.org>
date Sun, 04 Jan 2004 21:32:47 +0000
parents e70f80e98f60
children 8ac3f46f9d09
rev   line source
740
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
1
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
2 /* Test program to check SDL's CPU feature detection */
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
3
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
4 #include <stdio.h>
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
5
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
6 #include "SDL.h"
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
7 #include "SDL_cpuinfo.h"
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
8
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
9 int main(int argc, char *argv[])
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
10 {
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
11 printf("MMX %s\n", SDL_HasMMX() ? "detected" : "not detected");
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
12 printf("3DNow %s\n", SDL_Has3DNow() ? "detected" : "not detected");
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
13 printf("SSE %s\n", SDL_HasSSE() ? "detected" : "not detected");
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
14 return(0);
e70f80e98f60 Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
15 }