view test/testcpuinfo.c @ 1194:b8f167923bfc

Date: Sun, 04 Dec 2005 21:43:46 -0500 From: Jonathan Atkins <jcatki@jcatki.no-ip.org> Subject: SDL patch: DGA key events I kept seeing DGA die on me whenever I press a key. I tracked it down and it seems that the new indirect X via pointers system messed it up. It needed to have the pX* pointers well defined to call, in particular, pXNextEvent. Also, the X11_TranslateKey function prototype was changed, but not updated in the dga driver. perhaps other files are also affected. Not sure what releases may suffer from this too. thanks! -Jon Atkins
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 05 Dec 2005 04:36:53 +0000
parents ca06a994f03c
children
line wrap: on
line source


/* 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[])
{
	printf("RDTSC %s\n", SDL_HasRDTSC() ? "detected" : "not detected");
	printf("MMX %s\n", SDL_HasMMX() ? "detected" : "not detected");
	printf("MMX Ext %s\n", SDL_HasMMXExt() ? "detected" : "not detected");
	printf("3DNow %s\n", SDL_Has3DNow() ? "detected" : "not detected");
	printf("3DNow Ext %s\n", SDL_Has3DNowExt() ? "detected" : "not detected");
	printf("SSE %s\n", SDL_HasSSE() ? "detected" : "not detected");
	printf("SSE2 %s\n", SDL_HasSSE2() ? "detected" : "not detected");
	printf("AltiVec %s\n", SDL_HasAltiVec() ? "detected" : "not detected");
	return(0);
}