Lines Matching refs:SDL_CPUCount
547 static int SDL_CPUCount = 0; variable
552 if (!SDL_CPUCount) { in SDL_GetCPUCount()
555 if (SDL_CPUCount <= 0) { in SDL_GetCPUCount()
556 SDL_CPUCount = (int)sysconf(_SC_NPROCESSORS_ONLN); in SDL_GetCPUCount()
560 if (SDL_CPUCount <= 0) { in SDL_GetCPUCount()
561 size_t size = sizeof(SDL_CPUCount); in SDL_GetCPUCount()
562 sysctlbyname("hw.ncpu", &SDL_CPUCount, &size, NULL, 0); in SDL_GetCPUCount()
566 if (SDL_CPUCount <= 0) { in SDL_GetCPUCount()
569 SDL_CPUCount = info.dwNumberOfProcessors; in SDL_GetCPUCount()
573 if (SDL_CPUCount <= 0) { in SDL_GetCPUCount()
575 &SDL_CPUCount, sizeof(SDL_CPUCount) ); in SDL_GetCPUCount()
580 if (SDL_CPUCount <= 0) { in SDL_GetCPUCount()
581 SDL_CPUCount = 1; in SDL_GetCPUCount()
584 return SDL_CPUCount; in SDL_GetCPUCount()