MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / is_running_on_efficiency_core

Function is_running_on_efficiency_core

smallthinker/common/common.cpp:147–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static 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
155static int cpu_count_math_cpus(int n_cpu) {
156 int result = 0;

Callers 1

cpu_count_math_cpusFunction · 0.85

Calls 1

cpuidFunction · 0.85

Tested by

no test coverage detected