MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CpuId

Function CpuId

Source/ThirdParty/tracy/client/TracyProfiler.cpp:317–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315
316#if defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64
317static inline void CpuId( uint32_t* regs, uint32_t leaf )
318{
319 memset(regs, 0, sizeof(uint32_t) * 4);
320#if defined _MSC_VER
321 __cpuidex( (int*)regs, leaf, 0 );
322#else
323 __get_cpuid( leaf, regs, regs+1, regs+2, regs+3 );
324#endif
325}
326
327static void InitFailure( const char* msg )
328{

Callers 3

GetHostInfoFunction · 0.85
WorkerMethod · 0.85

Calls 1

memsetFunction · 0.85

Tested by

no test coverage detected