Lines Matching defs:cCpus
55 int cCpus = -1;
56 size_t cb = sizeof(cCpus);
57 int rc = sysctlbyname("hw.logicalcpu_max", &cCpus, &cb, NULL, 0);
58 if (rc != -1 && cCpus >= 1)
59 return cCpus;
71 int cCpus = -1;
72 size_t cb = sizeof(cCpus);
73 int rc = sysctlbyname("hw.physicalcpu_max", &cCpus, &cb, NULL, 0);
74 if (rc != -1 && cCpus >= 1)
75 return cCpus;
87 int cCpus = -1;
88 size_t cb = sizeof(cCpus);
89 int rc = sysctlbyname("hw.logicalcpu", &cCpus, &cb, NULL, 0);
90 if (rc != -1 && cCpus >= 1)
91 return cCpus;
103 int cCpus = -1;
104 size_t cb = sizeof(cCpus);
105 int rc = sysctlbyname("hw.physicalcpu", &cCpus, &cb, NULL, 0);
106 if (rc != -1 && cCpus >= 1)
107 return cCpus;
162 RTCPUID cCpus = rtMpDarwinMaxLogicalCpus();
163 return RTCpuSetFromU64(RT_BIT_64(cCpus) - 1);
239 int cCpus = -1;
240 cb = sizeof(cCpus);
241 rc = sysctl(aiMib, RT_ELEMENTS(aiMib), &cCpus, &cb, NULL, 0);
242 if (rc != -1 && cCpus >= 1)
243 return cCpus;