Share

Open Computer Vision Library

Tracker: Bugs

5 RDTSC erro mac ppc G4 - ID: 2894866
Last Update: Comment added ( sf-robot )

G4 doesn't have an RDTSC register. Thus at make -j8 65% I get

Building CXX object src/cxcore/CMakeFiles/cxcore.dir/cxtables.o
/Users/user/trunk/opencv/src/cxcore/cxsystem.cpp:171:2: error: #error
"RDTSC not defined"
make[2]: *** [src/cxcore/CMakeFiles/cxcore.dir/cxsystem.o] Error 1
make[1]: *** [src/cxcore/CMakeFiles/cxcore.dir/all] Error 2
make: *** [all] Error 2
____________________________________________

found this snippet of code somewhere, hope it helps, Thanks for your time
~Ben


typedef struct _OGLULCPUTime {
OGLUInt32 high;
OGLUInt32 low;
} OGLULCPUTime;

static inline OGLULCPUTime OGLGetCPUTime(void)
{
OGLULCPUTime cpuTime;
unsigned long high1, high2, low;

asm volatile (
"mftbu %0\n"
"mftb %1\n"
"mftbu %2\n"
"cmpw %3,%4\n"
"bne- $-16\n"
: "=r" (high1), "=r" (low), "=r" (high2)
: "0" (high1), "2" (high2));

cpuTime.high = high1;
cpuTime.low = low;

return cpuTime;
}


Nobody/Anonymous ( nobody ) - 2009-11-09 22:34

5

Closed

Fixed

Nobody/Anonymous

Build system

None

Public


Comments ( 2 )

Date: 2009-11-25 02:20
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-11-10 16:18
Sender: vp153Project Admin

Thanks! Fixed in SVN 2276


Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
status_id Pending 2009-11-25 02:20 sf-robot
allow_comments 1 2009-11-25 02:20 sf-robot
close_date 2009-11-10 16:18 2009-11-25 02:20 sf-robot
status_id Open 2009-11-10 16:18 vp153
resolution_id None 2009-11-10 16:18 vp153
close_date - 2009-11-10 16:18 vp153