mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-31 10:40:33 +00:00
- Fixed GCC rdtsc (for real this time, I hope).
SVN r1511 (trunk)
This commit is contained in:
parent
366ed7047a
commit
3ee37fdc08
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,8 @@ inline volatile unsigned long long rdtsc()
|
||||||
if (CPU.bRDTSC)
|
if (CPU.bRDTSC)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
register unsigned volatile long long tsc asm("eax");
|
register unsigned volatile long long tsc;
|
||||||
asm volatile ("\trdtsc\n" : : : "eax", "edx");
|
asm volatile ("\trdtsc\n" : "=A" (tsc));
|
||||||
return tsc;
|
return tsc;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue