mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 08:36:19 -05:00
Added SDL_GetCPUCount() to see how many cores are available.
This commit is contained in:
@@ -155,6 +155,7 @@ int test_platform (void)
|
||||
"big"
|
||||
#endif
|
||||
);
|
||||
SDL_ATprintVerbose( 1, "CPU count: %d\n", SDL_GetCPUCount());
|
||||
SDL_ATprintVerbose( 1, "Available extensions:\n" );
|
||||
SDL_ATprintVerbose( 1, " RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected" );
|
||||
SDL_ATprintVerbose( 1, " MMX %s\n", SDL_HasMMX()? "detected" : "not detected" );
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user