*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40393
This commit is contained in:
parent
7cb593091a
commit
6833d2fae9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue