Commit 05eb1f25 by Matt Clarkson

Use `int64_t` rather than `int64`

For cross platform and cross compiler portability we use the standard integer type for a 64-bit integer. MinGW on Windows doesn't have the definition for `int64`.
parent 65a5ebd6
...@@ -243,7 +243,7 @@ void InitializeSystemInfo() { ...@@ -243,7 +243,7 @@ void InitializeSystemInfo() {
SHGetValueA(HKEY_LOCAL_MACHINE, SHGetValueA(HKEY_LOCAL_MACHINE,
"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0", "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0",
"~MHz", nullptr, &data, &data_size))) "~MHz", nullptr, &data, &data_size)))
cpuinfo_cycles_per_second = (int64)data * (int64)(1000 * 1000); // was mhz cpuinfo_cycles_per_second = (int64_t)data * (int64_t)(1000 * 1000); // was mhz
else else
cpuinfo_cycles_per_second = EstimateCyclesPerSecond(); cpuinfo_cycles_per_second = EstimateCyclesPerSecond();
// TODO: also figure out cpuinfo_num_cpus // TODO: also figure out cpuinfo_num_cpus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment