Lines Matching refs:cpu_core_count
167 if (afl->cpu_core_count < 2) { return; }
410 for (i = 0; i < afl->cpu_core_count; i++) {
417 for (i = afl->cpu_core_count - 1; i > -1; i--) {
441 if (i == afl->cpu_core_count || i == -1) {
449 afl->cpu_core_count,
2538 size_t s = sizeof(afl->cpu_core_count);
2544 if (sysctlbyname("hw.logicalcpu", &afl->cpu_core_count, &s, NULL, 0) < 0)
2551 if (sysctl(s_name, 2, &afl->cpu_core_count, &s, NULL, 0) < 0) return;
2559 afl->cpu_core_count = sysconf(_SC_NPROCESSORS_ONLN);
2569 if (!strncmp(tmp, "cpu", 3) && isdigit(tmp[3])) ++afl->cpu_core_count;
2577 if (afl->cpu_core_count > 0) {
2593 afl->cpu_core_count, afl->cpu_core_count > 1 ? "s" : "", cur_runnable,
2594 cur_runnable * 100.0 / afl->cpu_core_count);
2596 if (afl->cpu_core_count > 1) {
2598 if (cur_runnable > afl->cpu_core_count * 1.5) {
2602 } else if ((s64)cur_runnable + 1 <= (s64)afl->cpu_core_count) {
2614 afl->cpu_core_count = 0;