Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 4, 2002
1 parent f172c9e commit e01dea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/timer/linux/SDL_systimer.c
Expand Up @@ -73,9 +73,9 @@ static float cpu_mhz1000 = 0.0f;
/* This is for old binutils version that don't recognize rdtsc mnemonics.
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
#define rdtsc(t) asm("rdtsc" : "=A" (t));
#define rdtsc(t) asm __volatile__ ("rdtsc" : "=A" (t))
#endif

static float calc_cpu_mhz(void)
Expand Down

0 comments on commit e01dea4

Please sign in to comment.