Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 726 Bytes

testcpuinfo.c

File metadata and controls

20 lines (16 loc) · 726 Bytes
 
1
2
3
4
5
6
7
8
9
10
/* Test program to check SDL's CPU feature detection */
#include <stdio.h>
#include "SDL.h"
#include "SDL_cpuinfo.h"
int main(int argc, char *argv[])
{
Jan 6, 2004
Jan 6, 2004
11
printf("RDTSC %s\n", SDL_HasRDTSC() ? "detected" : "not detected");
12
printf("MMX %s\n", SDL_HasMMX() ? "detected" : "not detected");
Jan 24, 2004
Jan 24, 2004
13
printf("MMX Ext %s\n", SDL_HasMMXExt() ? "detected" : "not detected");
14
printf("3DNow %s\n", SDL_Has3DNow() ? "detected" : "not detected");
Jan 24, 2004
Jan 24, 2004
15
printf("3DNow Ext %s\n", SDL_Has3DNowExt() ? "detected" : "not detected");
16
printf("SSE %s\n", SDL_HasSSE() ? "detected" : "not detected");
Jan 24, 2004
Jan 24, 2004
17
printf("SSE2 %s\n", SDL_HasSSE2() ? "detected" : "not detected");
Jan 6, 2004
Jan 6, 2004
18
printf("AltiVec %s\n", SDL_HasAltiVec() ? "detected" : "not detected");
19
20
return(0);
}