Added SDL_GetCPUCount() to see how many cores are available.

This commit is contained in:
Sam Lantinga
2009-12-16 06:53:53 +00:00
parent 75e75ae0c3
commit dc1ed9e7ef
9 changed files with 175 additions and 183 deletions

View File

@@ -134,6 +134,7 @@ int
TestCPUInfo(SDL_bool verbose)
{
if (verbose) {
printf("CPU count: %d\n", SDL_GetCPUCount());
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");