mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-14 07:36:59 +00:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
23
src/Common/linux/platform.cpp
Normal file
23
src/Common/linux/platform.cpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
|
||||
uint32_t GetTickCount()
|
||||
{
|
||||
struct timespec ts;
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
return (1000 * ts.tv_sec + ts.tv_nsec / 1000000);
|
||||
}
|
||||
|
||||
#include <cpuid.h>
|
||||
|
||||
void (__cpuid)(int __cpuVal[4], unsigned int __leaf)
|
||||
{
|
||||
__cpuid(__cpuVal[0], __cpuVal[1], __cpuVal[2], __cpuVal[3], __leaf);
|
||||
}
|
||||
#undef __cpuid
|
||||
|
||||
void __cpuidex (int __cpuid_info[4], int __leaf, int __subleaf)
|
||||
{
|
||||
__cpuid_count (__leaf, __subleaf, __cpuid_info[0], __cpuid_info[1],
|
||||
__cpuid_info[2], __cpuid_info[3]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue