comparison test/testplatform.c @ 3579:3427271a2d75

Added SDL_GetCPUCount() to see how many cores are available.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 16 Dec 2009 06:53:53 +0000
parents 63d4517fc4ac
children bc50cd16bb07
comparison
equal deleted inserted replaced
3578:0d1b16ee0bca 3579:3427271a2d75
132 132
133 int 133 int
134 TestCPUInfo(SDL_bool verbose) 134 TestCPUInfo(SDL_bool verbose)
135 { 135 {
136 if (verbose) { 136 if (verbose) {
137 printf("CPU count: %d\n", SDL_GetCPUCount());
137 printf("RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected"); 138 printf("RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected");
138 printf("MMX %s\n", SDL_HasMMX()? "detected" : "not detected"); 139 printf("MMX %s\n", SDL_HasMMX()? "detected" : "not detected");
139 printf("MMX Ext %s\n", SDL_HasMMXExt()? "detected" : "not detected"); 140 printf("MMX Ext %s\n", SDL_HasMMXExt()? "detected" : "not detected");
140 printf("3DNow %s\n", SDL_Has3DNow()? "detected" : "not detected"); 141 printf("3DNow %s\n", SDL_Has3DNow()? "detected" : "not detected");
141 printf("3DNow Ext %s\n", 142 printf("3DNow Ext %s\n",