Game Development Community

Couple of small issues in CVS

by Gregory "Centove" McLean · in Torque Game Engine · 10/28/2005 (5:23 am) · 1 replies

On linux, with gcc 3.4.xx

platformX86UNIX/x86UNIXCPUInfo.cc

missing (around line 32):
#if defined(TORQUE_COMPILER_GCC) && ((__GNUC__ >= 3) && (__GNUC_MINOR__ >= 4))
static U32 timeLo;
static U32 timeHi;
#endif

Around line 63
#if defined(TORQUE_COMPILER_GCC) && ((__GNUC__ >= 3) && (__GNUC_MINOR__ >=4))
      asm("rdtsc" : "=a" (timeLo), "\d" (timeHi));
#else
Shoud be.
#if defined(TORQUE_COMPILER_GCC) && ((__GNUC__ >= 3) && (__GNUC_MINOR__ >=4))
      asm("rdtsc" : "=a" (timeLo), "=d" (timeHi));
#else

#1
10/28/2005 (5:27 am)
Gregory,

Thanks for the fix, I'll get it into SVN this evening. I do not use GCC 3.4.* which is my excuse why this was missed ;)

-Ron