| 145 | } |
| 146 | |
| 147 | static bool is_running_on_efficiency_core(void) { |
| 148 | unsigned eax, ebx, ecx, edx; |
| 149 | cpuid(0x1a, 0, &eax, &ebx, &ecx, &edx); |
| 150 | int intel_atom = 0x20; |
| 151 | int core_type = (eax & 0xff000000u) >> 24; |
| 152 | return core_type == intel_atom; |
| 153 | } |
| 154 | |
| 155 | static int cpu_count_math_cpus(int n_cpu) { |
| 156 | int result = 0; |
no test coverage detected