Commit 6833d2fa authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40393
parent 7cb59309
...@@ -73,9 +73,9 @@ static float cpu_mhz1000 = 0.0f; ...@@ -73,9 +73,9 @@ static float cpu_mhz1000 = 0.0f;
/* This is for old binutils version that don't recognize rdtsc mnemonics. /* This is for old binutils version that don't recognize rdtsc mnemonics.
But all binutils version supports this. But all binutils version supports this.
*/ */
#define rdtsc(t) asm(".byte 0x0f, 0x31; " : "=A" (t)); #define rdtsc(t) asm __volatile__ (".byte 0x0f, 0x31; " : "=A" (t))
#else #else
#define rdtsc(t) asm("rdtsc" : "=A" (t)); #define rdtsc(t) asm __volatile__ ("rdtsc" : "=A" (t))
#endif #endif
static float calc_cpu_mhz(void) static float calc_cpu_mhz(void)
......
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