cpuinfo: Rename SDL_GetCPUCount to SDL_GetNumLogicalCPUCores
This was the only API that broke the "GetNumThings" convention used elsewhere, so renaming it helps with consistency. Adding "logical cores" to the name also makes it a bit more immediately obvious what the count actually represents.
This commit is contained in:
committed by
Sam Lantinga
parent
93bf534268
commit
1f3fd65c4c
@@ -389,7 +389,7 @@ static int Test64Bit(SDL_bool verbose)
|
||||
static int TestCPUInfo(SDL_bool verbose)
|
||||
{
|
||||
if (verbose) {
|
||||
SDL_Log("CPU count: %d\n", SDL_GetCPUCount());
|
||||
SDL_Log("Number of logical CPU cores: %d\n", SDL_GetNumLogicalCPUCores());
|
||||
SDL_Log("CPU cache line size: %d\n", SDL_GetCPUCacheLineSize());
|
||||
SDL_Log("AltiVec %s\n", SDL_HasAltiVec() ? "detected" : "not detected");
|
||||
SDL_Log("MMX %s\n", SDL_HasMMX() ? "detected" : "not detected");
|
||||
|
||||
Reference in New Issue
Block a user