Skip to content
Snippets Groups Projects
Commit 2375afc4 authored by Tofu Linden's avatar Tofu Linden
Browse files

Gosh, the mac prototypes for get_cpu_clock_count_64 have always been wrong,...

Gosh, the mac prototypes for get_cpu_clock_count_64 have always been wrong, but the compiler didn't start caring until I made these proper member functions.

fixed.
parent 18bdeb3d
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ inline U32 LLFastTimer::getCPUClockCount32() ...@@ -137,7 +137,7 @@ inline U32 LLFastTimer::getCPUClockCount32()
return (U32)x >> 8; return (U32)x >> 8;
} }
inline U32 LLFastTimer::getCPUClockCount64() inline U64 LLFastTimer::getCPUClockCount64()
{ {
U64 x; U64 x;
__asm__ volatile (".byte 0x0f, 0x31": "=A"(x)); __asm__ volatile (".byte 0x0f, 0x31": "=A"(x));
...@@ -157,7 +157,7 @@ inline U32 LLFastTimer::getCPUClockCount32() ...@@ -157,7 +157,7 @@ inline U32 LLFastTimer::getCPUClockCount32()
return (U32)get_clock_count(); return (U32)get_clock_count();
} }
inline U32 LLFastTimer::getCPUClockCount64() inline U64 LLFastTimer::getCPUClockCount64()
{ {
return get_clock_count(); return get_clock_count();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment