Changeset - r3356:43df8ed25511
[Not reviewed]
master
0 1 0
bjarni - 18 years ago 2006-03-29 16:56:38
bjarni@openttd.org
(svn r4151) -Fix: [PowerPC] removed an incorrect uninitialized var used warning in os_timer
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
os_timer.c
Show inline comments
 
@@ -41,8 +41,7 @@ uint64 _rdtsc(void)
 
#if defined(__POWERPC__) && !defined(RDTSC_AVAILABLE)
 
uint64 _rdtsc(void)
 
{
 
	uint32 high, low;
 
	uint32 high2 = 0;
 
	uint32 high = 0, high2 = 0, low;
 
	/* PPC does not have rdtsc, so we cheat by reading the two 32-bit time-counters
 
	 * it has, 'Move From Time Base (Upper)'. Since these are two reads, in the
 
	 * very unlikely event that the lower part overflows to the upper part while we
0 comments (0 inline, 0 general)