MCPcopy Create free account
hub / github.com/RenderKit/embree / getCPUVendor

Function getCPUVendor

common/sys/sysinfo.cpp:90–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 std::string getCPUVendor()
91 {
92#if defined(__X86_ASM__)
93 int cpuinfo[4];
94 __cpuid (cpuinfo, 0);
95 int name[4];
96 name[0] = cpuinfo[1];
97 name[1] = cpuinfo[3];
98 name[2] = cpuinfo[2];
99 name[3] = 0;
100 return (char*)name;
101#elif defined(__ARM_NEON)
102 return "ARM";
103#else
104 return "Unknown";
105#endif
106 }
107
108 CPU getCPUModel()
109 {

Callers 2

printMethod · 0.85
getCPUModelFunction · 0.85

Calls 1

__cpuidFunction · 0.85

Tested by

no test coverage detected