MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / cpuid

Function cpuid

common/common.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136#include <pthread.h>
137
138static void cpuid(unsigned leaf, unsigned subleaf,
139 unsigned *eax, unsigned *ebx, unsigned *ecx, unsigned *edx) {
140 __asm__("movq\t%%rbx,%%rsi\n\t"
141 "cpuid\n\t"
142 "xchgq\t%%rbx,%%rsi"
143 : "=a"(*eax), "=S"(*ebx), "=c"(*ecx), "=d"(*edx)
144 : "0"(leaf), "2"(subleaf));
145}
146
147static int pin_cpu(int cpu) {
148 cpu_set_t mask;

Callers 3

is_hybrid_cpuFunction · 0.85
cpuid_x86Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected